systemd method of shutting down
This commit is contained in:
parent
2733e46d67
commit
47f32c0583
|
@ -1369,7 +1369,7 @@ function shut_down_system {
|
|||
1) return;;
|
||||
255) return;;
|
||||
esac
|
||||
shutdown now
|
||||
systemctl poweroff
|
||||
}
|
||||
|
||||
function restart_system {
|
||||
|
|
|
@ -73,7 +73,7 @@ $(get_ssh_server_key)
|
|||
echo $'Shutting down the system. Detatch the ethernet cable, attach wifi dongle, then power on again.'
|
||||
echo ''
|
||||
${PROJECT_NAME}-logging off
|
||||
shutdown now
|
||||
systemctl poweroff
|
||||
return
|
||||
fi
|
||||
echo $'Turning off logging'
|
||||
|
|
|
@ -41,6 +41,7 @@ ATHEROS_WIFI_REPO="https://github.com/qca/open-ath9k-htc-firmware.git"
|
|||
|
||||
# Debian stretch has a problem where the formerly predictable wlan0 and eth0
|
||||
# device names get assigned random names. This is a hacky workaround.
|
||||
# Also adding net.ifnames=0 to kernel options on bootloader may work.
|
||||
function enable_predictable_device_names {
|
||||
if [ $rootdir ]; then
|
||||
chroot "$rootdir" ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
|
||||
|
|
Loading…
Reference in New Issue