Developing lightweight computation at the DSG edge

Commit 92720303 authored by Agustí Moll i Garcia's avatar Agustí Moll i Garcia
Browse files

Update hostname for determine name in qmp_configure, in first boot

parent da914aae
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment