# 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
ret=$?
case "${ret}" in
- 0)
- # The installer has finished without a problem.
- ;;
- *)
+ 139)
echo "The installer has crashed. You will be dropped to a debugging shell"
/bin/bash --login
;;
esac
+# Poweroff after an unattended installation
+if [ "${unattended}" = "1" ]; then
+ /shutdown poweroff
+fi
+
# Reboot the system
/shutdown reboot