From fc6cdefedb0aa507bba3820b4853451baeba5bbb Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 8 Jun 2009 22:18:39 +0100 Subject: [PATCH] Linux FHS requires /var/lib/misc Stop fuser from being chatty --- init.d/bootmisc.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index aa14a75d..520746ff 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -76,9 +76,10 @@ start() # Remove any added console dirs rm -rf "$RC_LIBEXECDIR"/console - local logw=false runw=false + local logw=false runw=false extra= # Ensure that our basic dirs exist - for x in /var/log /var/run /tmp; do + [ "$RC_UNAME" = Linux ] && extra=/var/lib/misc # Satisfy Linux FHS + for x in /var/log /var/run /tmp $extra; do if ! [ -d $x ]; then if ! mkdir -p $x; then eend 1 "failed to create needed directory $x" @@ -105,7 +106,7 @@ start() # Clean stale sockets if [ -S "$x" ]; then if type fuser >/dev/null 2>&1; then - fuser "$x" 2>/dev/null || rm -- "$x" + fuser "$x" >/dev/null 2>&1 || rm -- "$x" else rm -- "$x" fi