Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
92720303
Commit
92720303
authored
Aug 04, 2011
by
Agustí Moll i Garcia
Browse files
Update hostname for determine name in qmp_configure, in first boot
parent
da914aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/init.d/qmp_autoconf
View file @
92720303
...
...
@@ -6,6 +6,7 @@ QMP_DIR="/etc/qmp"
configure
()
{
echo
"Starting qmp configuration..."
echo
"Starting qmp configuration..."
>
/dev/console
echo
"[Configuring wireless]"
.
$QMP_DIR
/qmp_wireless.sh
...
...
@@ -19,11 +20,14 @@ configure() {
# /etc/init.d/qmp-fix-vlan start
/etc/init.d/network restart
# ifup -a
QMP_HOSTNAME
=
$(
uci get system.@system[0].hostname
)
echo
"Update hostname for: '
$QMP_HOSTNAME
'"
echo
"
$QMP_HOSTNAME
"
>
/proc/sys/kernel/hostname
/etc/init.d/olsrd restart
/etc/init.d/bmx6 restart
touch
"
$CONTROL_FILE
"
echo
"Done, rebooting system to complete configuration"
# reboot
#
echo "Done, rebooting system to complete configuration"
}
start
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment