installer: Power off instead of reboot after unattended install

This commit is contained in:
Michael Tremer
2014-11-16 11:37:47 +01:00
parent a046e8a6ab
commit c5a5b13e8e

View File

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