Skip to content

Commit

Permalink
rename poweroff env
Browse files Browse the repository at this point in the history
Signed-off-by: Date Huang <date.huang@suse.com>
  • Loading branch information
Date Huang committed Dec 15, 2022
1 parent 8b7a60f commit 3dce38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/harvester-os/files/usr/sbin/cos-installer-shutdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

if [ "$ELEMENTAL_POWER_OFF" = true ] || grep -q 'cos.install.power_off=true' /proc/cmdline; then
if [ "$HARVESTER_POWER_OFF" = true ] || grep -q 'cos.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 3dce38a

Please sign in to comment.