mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-10 17:28:26 +02:00
installer: Power off instead of reboot after unattended install
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
# IPFire Installer RC
|
# IPFire Installer RC
|
||||||
#
|
#
|
||||||
|
|
||||||
|
unattended=0
|
||||||
|
if grep -q "installer.unattended" /proc/cmdline; then
|
||||||
|
unattended=1
|
||||||
|
fi
|
||||||
|
|
||||||
# Enable Unicode
|
# Enable Unicode
|
||||||
echo -en '\033%G' && kbd_mode -u
|
echo -en '\033%G' && kbd_mode -u
|
||||||
|
|
||||||
@@ -28,5 +33,10 @@ case "${ret}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Poweroff after an unattended installation
|
||||||
|
if [ "${unattended}" = "1" ]; then
|
||||||
|
/shutdown poweroff
|
||||||
|
fi
|
||||||
|
|
||||||
# Reboot the system
|
# Reboot the system
|
||||||
/shutdown reboot
|
/shutdown reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user