diff options
-rwxr-xr-x | shutdown.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdown.sh b/shutdown.sh index 0cf5c24..1fa8a5f 100755 --- a/shutdown.sh +++ b/shutdown.sh @@ -37,7 +37,7 @@ if [ "$action" = "cancel" ]; then exit fi -if [ ! -w /run/runit/shutdown.pid ]; then +if ! touch /run/runit/shutdown.pid 2>/dev/null; then echo "Not enough permissions to execute ${0#*/}" exit 1 fi |