Reboot now uses systemd

This commit is contained in:
Bob Mottram 2017-06-10 14:26:52 +01:00
parent 46aebc3edd
commit cd54f26f84
3 changed files with 5 additions and 5 deletions

View File

@ -1378,7 +1378,7 @@ function restart_system {
1) return;; 1) return;;
255) return;; 255) return;;
esac esac
reboot systemctl reboot -i
} }
function change_system_name { function change_system_name {
@ -1423,7 +1423,7 @@ function set_dynamic_IP {
echo $'Changing to a dynamic IP address.' echo $'Changing to a dynamic IP address.'
echo '' echo ''
echo $"System is rebooting. You may need to close this terminal and log in from a new one." echo $"System is rebooting. You may need to close this terminal and log in from a new one."
reboot systemctl reboot -i
fi fi
} }
@ -1559,7 +1559,7 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
--yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60 --yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
sel=$? sel=$?
case $sel in case $sel in
0) reboot;; 0) systemctl reboot -i;;
esac esac
fi fi
fi fi

View File

@ -625,7 +625,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then
rm /usr/share/images/desktop-base/desktop-background rm /usr/share/images/desktop-base/desktop-background
ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background ln -s /usr/share/images/desktop-base/${PROJECT_NAME}_mesh_background.png /usr/share/images/desktop-base/desktop-background
fi fi
reboot systemctl reboot -i
fi fi
fi fi

View File

@ -83,7 +83,7 @@ $(get_ssh_server_key)
echo $'Turning off logging' echo $'Turning off logging'
${PROJECT_NAME}-logging off ${PROJECT_NAME}-logging off
echo $'Rebooting the system' echo $'Rebooting the system'
reboot systemctl reboot -i
fi fi
echo $'Turning off logging' echo $'Turning off logging'
${PROJECT_NAME}-logging off ${PROJECT_NAME}-logging off