about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xshutdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/shutdown b/shutdown
index b456647..9d51d54 100755
--- a/shutdown
+++ b/shutdown
@@ -38,6 +38,9 @@ message="${*:-system is going down}"
 
 if [ "$action" = "cancel" ]; then
   kill $(cat /run/runit/shutdown.pid)
+  if [ -e /etc/nologin ] && ! [ -s /etc/nologin ]; then
+    rm /etc/nologin
+  fi
   echo "${*:-shutdown cancelled}" | wall
   exit
 fi