]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-git.patch
- rel 3; fix DELAY_LOGIN handling (visible if sysconfig/system is empty for example)
[packages/rc-scripts.git] / rc-scripts-git.patch
1 commit f60ef786cf271e20da75988326a8c0cf90a7c485
2 Author: Arkadiusz Miƛkiewicz <arekm@maven.pl>
3 Date:   Thu Jul 9 09:18:37 2015 +0200
4
5     Make DELAY_LOGIN checks consistent with the one in rc.sysinit (broken in 277e5f5352e622c4317852cded63e2a287506655).
6
7 diff --git a/rc.d/init.d/allowlogin b/rc.d/init.d/allowlogin
8 index dcd789e..d837189 100755
9 --- a/rc.d/init.d/allowlogin
10 +++ b/rc.d/init.d/allowlogin
11 @@ -24,14 +24,14 @@ esac
12  . /etc/rc.d/init.d/functions
13  
14  start() {
15 -       if is_yes "$DELAY_LOGIN" && [ -f /etc/nologin.boot ]; then
16 +       if ! is_no "$DELAY_LOGIN" && [ -f /etc/nologin.boot ]; then
17                 run_cmd "Allowing users to login" rm -f /etc/nologin /etc/nologin.boot
18         fi
19  }
20  
21  stop() {
22         # /etc/nologin when shutting down system
23 -       if is_yes "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
24 +       if ! is_no "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
25                 nls "System shutdown in progress\n" > /etc/nologin
26                 chmod 644 /etc/nologin
27                 cp -fp /etc/nologin /etc/nologin.boot
28 @@ -39,7 +39,7 @@ stop() {
29  }
30  
31  status() {
32 -       if is_yes "$DELAY_LOGIN"; then
33 +       if ! is_no "$DELAY_LOGIN"; then
34                 nls "Delay login is enabled"
35         else
36                 nls "Delay login is not enabled"
This page took 0.028322 seconds and 3 git commands to generate.