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
ccf3633c
Commit
ccf3633c
authored
Jan 11, 2012
by
p4u
Browse files
Reboot enabled again, I think is better
parent
87b022a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/init.d/qmp_autoconf
View file @
ccf3633c
...
...
@@ -28,27 +28,35 @@ configure() {
echo
"Starting qmp configuration..."
>
/dev/console
echo
"[Configuring wireless]"
#Generating default wifi configuration
iw reg
set
$(
uci get qmp.wireless.country
)
||
iw reg
set
00
sleep
1
mv
/etc/config/wireless /tmp/wireless.old
wifi detect |
grep
-v
disabled
>
/etc/config/wireless
wifi
#Configuring wifi using QMP
.
$QMP_DIR
/qmp_wireless.sh
# qmp_configure_wifi_driver
qmp_configure_wifi_initial
qmp_configure_wifi
wifi
#Configuring networking
echo
"[Configuring networking]"
.
$QMP_DIR
/qmp_functions.sh
qmp_configure
/etc/init.d/network restart
sleep
3
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
ifup
-a
/etc/init.d/dnsmasq restart
#
/etc/init.d/network restart
#
sleep 3
#
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
#
ifup -a
#
/etc/init.d/dnsmasq restart
touch
"
$CONTROL_FILE
"
reboot
}
#This function is executed in each boot
...
...
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