diff options
author | Roy Marples <roy@marples.name> | 2009-07-09 13:32:27 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-07-09 13:32:27 +0100 |
commit | 08b566466899a4de872912ab6684fb7cd1eb5c95 (patch) | |
tree | f72c793c97efdd0780c21d07dcfa3fd4c13e2964 /init.d | |
parent | 7962218dd85dcb4ebbd1f6fa01b565d129a258e2 (diff) |
Only delete /etc/nologin if we can write to it
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/bootmisc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 88004342..1ec57481 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -150,7 +150,7 @@ start() fi fi - rm -f /etc/nologin + [ -w /etc/nologin ] && rm -f /etc/nologin return 0 } |