diff options
author | Roy Marples <roy@marples.name> | 2009-06-08 22:18:39 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-06-08 22:18:39 +0100 |
commit | fc6cdefedb0aa507bba3820b4853451baeba5bbb (patch) | |
tree | f853f7eb4b179cdb38612eca7b627413fd50816b | |
parent | 43f6c2196eaa1600f1816e1081e35fd588806047 (diff) |
Linux FHS requires /var/lib/misc
Stop fuser from being chatty
-rw-r--r-- | init.d/bootmisc.in | 7 |
1 files 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 |