Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #143 from handcraftedbits/master
Browse files Browse the repository at this point in the history
Fix #82: honor k3os.install.power_off when k3os.mode=install.
  • Loading branch information
dweomer authored Jan 13, 2020
2 parents 730df25 + f278a5d commit fba4779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ if [ -n "$INTERACTIVE" ]; then
exit 0
fi

if [ "$K3OS_INSTALL_POWER_OFF" = true ] || grep -q 'k3os.mode=install' /proc/cmdline; then
if [ "$K3OS_INSTALL_POWER_OFF" = true ] || grep -q 'k3os.install.power_off=true' /proc/cmdline; then
poweroff -f
else
echo " * Rebooting system in 5 seconds (CTRL+C to cancel)"
Expand Down

0 comments on commit fba4779

Please sign in to comment.