From: Michael Tremer Date: Sun, 16 Nov 2014 10:37:47 +0000 (+0100) Subject: installer: Power off instead of reboot after unattended install X-Git-Tag: v2.17-core87~103^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5a5b13e8ed808c726b3bb4142fa3dd49ad9d4a8;p=ipfire-2.x.git installer: Power off instead of reboot after unattended install --- diff --git a/src/installer/dracut-module/run-installer.sh b/src/installer/dracut-module/run-installer.sh index b62cfa996a..ea9669a86c 100644 --- a/src/installer/dracut-module/run-installer.sh +++ b/src/installer/dracut-module/run-installer.sh @@ -3,6 +3,11 @@ # IPFire Installer RC # +unattended=0 +if grep -q "installer.unattended" /proc/cmdline; then + unattended=1 +fi + # Enable Unicode echo -en '\033%G' && kbd_mode -u @@ -28,5 +33,10 @@ case "${ret}" in ;; esac +# Poweroff after an unattended installation +if [ "${unattended}" = "1" ]; then + /shutdown poweroff +fi + # Reboot the system /shutdown reboot