aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rw-r--r--init.d/bootmisc.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index ca333bec..3e56ebcb 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -129,7 +129,9 @@ clean_run()
start()
{
# Remove any added console dirs
- rm -rf "$RC_LIBEXECDIR"/console/*
+ if checkpath -W "$RC_LIBEXECDIR"; then
+ rm -rf "$RC_LIBEXECDIR"/console/*
+ fi
local logw=false runw=false extra=
# Ensure that our basic dirs exist