aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-09 13:32:27 +0100
committerRoy Marples <roy@marples.name>2009-07-09 13:32:27 +0100
commit08b566466899a4de872912ab6684fb7cd1eb5c95 (patch)
treef72c793c97efdd0780c21d07dcfa3fd4c13e2964
parent7962218dd85dcb4ebbd1f6fa01b565d129a258e2 (diff)
Only delete /etc/nologin if we can write to it
-rw-r--r--init.d/bootmisc.in2
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
}