systemd method of shutting down

This commit is contained in:
Bob Mottram 2017-06-19 15:27:21 +01:00
parent 2733e46d67
commit 47f32c0583
3 changed files with 3 additions and 2 deletions

View File

@ -1369,7 +1369,7 @@ function shut_down_system {
1) return;;
255) return;;
esac
shutdown now
systemctl poweroff
}
function restart_system {

View File

@ -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'

View File

@ -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