]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Make DELAY_LOGIN checks consistent with the one in rc.sysinit (broken in 277e5f5352e6...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Jul 2015 07:18:37 +0000 (09:18 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Jul 2015 07:18:37 +0000 (09:18 +0200)
rc.d/init.d/allowlogin

index dcd789edfedc2276df0ecaec1886f7bc97647ad6..d837189815495c6aa137e31c34172852b8635d1d 100755 (executable)
@@ -24,14 +24,14 @@ esac
 . /etc/rc.d/init.d/functions
 
 start() {
-       if is_yes "$DELAY_LOGIN" && [ -f /etc/nologin.boot ]; then
+       if ! is_no "$DELAY_LOGIN" && [ -f /etc/nologin.boot ]; then
                run_cmd "Allowing users to login" rm -f /etc/nologin /etc/nologin.boot
        fi
 }
 
 stop() {
        # /etc/nologin when shutting down system
-       if is_yes "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
+       if ! is_no "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
                nls "System shutdown in progress\n" > /etc/nologin
                chmod 644 /etc/nologin
                cp -fp /etc/nologin /etc/nologin.boot
@@ -39,7 +39,7 @@ stop() {
 }
 
 status() {
-       if is_yes "$DELAY_LOGIN"; then
+       if ! is_no "$DELAY_LOGIN"; then
                nls "Delay login is enabled"
        else
                nls "Delay login is not enabled"
This page took 0.073655 seconds and 4 git commands to generate.