bootmisc: Remove console directories only if $RC_LIBEXECDIR is writable

X-Gentoo-Bug: 489368
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489368
This commit is contained in:
William Hubbs 2014-01-15 10:43:52 -06:00
parent abadaa04ab
commit 561b53ef09

View File

@ -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