removed fail's if mbmon cannot start

changed the output of smartenables if devices not support smart



git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1194 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
arne_f
2008-02-10 11:33:29 +00:00
parent 00b216e6df
commit 5c819ec4c5
2 changed files with 17 additions and 7 deletions

View File

@@ -13,13 +13,17 @@ case "$1" in
# for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do boot_mesg "Bringing up hddtemp daemon for $disk ..."; /usr/sbin/hddtemp $disk -d -l localhost; evaluate_retval; done # for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do boot_mesg "Bringing up hddtemp daemon for $disk ..."; /usr/sbin/hddtemp $disk -d -l localhost; evaluate_retval; done
boot_mesg "Bringing up mbmon daemon..." boot_mesg "Bringing up mbmon daemon..."
/usr/bin/mbmon -P 411 -r /usr/bin/mbmon -P 411 -r
evaluate_retval if [ ${?} = 0 ]; then
echo_ok;
fi
;; ;;
stop) stop)
boot_mesg "Stopping mbmon daemon..." # boot_mesg "Stopping mbmon daemon..."
killproc /usr/bin/mbmon # killproc /usr/bin/mbmon
evaluate_retval # if [ ${?} = 0 ]; then
# echo_ok;
# fi
# boot_mesg "Stopping hddtemp daemon..." # boot_mesg "Stopping hddtemp daemon..."
# killproc /usr/sbin/hddtemp # killproc /usr/sbin/hddtemp
# evaluate_retval # evaluate_retval

View File

@@ -6,11 +6,17 @@
case "$1" in case "$1" in
start) start)
boot_mesg -n "Enabling S.M.A.R.T.: ";
for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do
boot_mesg "Enabling S.M.A.R.T. for $disk ..."; /usr/sbin/smartctl -d ata --smart=on /dev/$disk > /dev/nul;
/usr/sbin/smartctl -d ata --smart=on /dev/$disk > /dev/nul; if [ ${?} = 0 ]; then
evaluate_retval; boot_mesg -n "$SUCCESS$disk$NORMAL ";
else
boot_mesg -n "$WARNING$disk$NORMAL ";
fi
done done
boot_mesg;
echo_ok;
;; ;;
*) *)