Reboot now uses systemd
This commit is contained in:
parent
46aebc3edd
commit
cd54f26f84
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue