From 08b566466899a4de872912ab6684fb7cd1eb5c95 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 9 Jul 2009 13:32:27 +0100 Subject: Only delete /etc/nologin if we can write to it --- init.d/bootmisc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3