From dc09edd6e019b971663a07c76e5d66dbd2d69c5c Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 24 Jul 2017 17:17:24 +0200 Subject: shutdown: delete empty /etc/nologin on -c. Fixes #73. --- shutdown | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit 1.4.1