From 0404a704940aad2fffdb76c7a5a7df2f9533aa2c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 6 Dec 2003 22:16:10 +0000 Subject: [PATCH] Init scripts code cleanup --- script/init.FreeBSD | 24 ++++++++++++------------ script/init.Slackware | 3 +-- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/script/init.FreeBSD b/script/init.FreeBSD index 397c5b26..5e585381 100644 --- a/script/init.FreeBSD +++ b/script/init.FreeBSD @@ -46,18 +46,18 @@ case "$1" in su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null kill -15 `cat $MBSE_ROOT/var/run/mbtask` sleep 1 - if [ -f $MBSE_ROOT/var/run/mbtask ]; then - echo -n "." - sleep 1 - fi - if [ -f $MBSE_ROOT/var/run/mbtask ]; then - echo -n "." - sleep 1 - fi - if [ -f $MBSE_ROOT/var/run/mbtask ]; then - echo -n "." - sleep 1 - fi + if [ -f $MBSE_ROOT/var/run/mbtask ]; then + echo -n "." + sleep 1 + fi + if [ -f $MBSE_ROOT/var/run/mbtask ]; then + echo -n "." + sleep 1 + fi + if [ -f $MBSE_ROOT/var/run/mbtask ]; then + echo -n "." + sleep 1 + fi if [ -f $MBSE_ROOT/var/run/mbtask ]; then kill -9 `cat $MBSE_ROOT/var/run/mbtask` fi diff --git a/script/init.Slackware b/script/init.Slackware index 1d2dd4b5..b626a8ef 100644 --- a/script/init.Slackware +++ b/script/init.Slackware @@ -48,8 +48,7 @@ case "$1" in if [ -f $MBSE_ROOT/var/run/mbtask ]; then echo -n " logoff users " su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null - echo -n "done," - echo -n " stopping mbtask" + echo -n "done, stopping mbtask" kill -15 `cat $MBSE_ROOT/var/run/mbtask` i=10; doit=1; while let 'i > 0' && let 'doit != 0'