]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/smartenabler
2 # Begin $rc_base/init.d/smartenabler
9 boot_mesg
-n "Enabling S.M.A.R.T.: ";
10 for disk
in `ls -1 /sys/block | grep -E '^sd' | sort | uniq`; do
11 /usr
/sbin
/smartctl
--smart=on
/dev
/$disk > /dev
/nul
;
13 boot_mesg
-n "$SUCCESS$disk$NORMAL ";
15 boot_mesg
-n "$WARNING$disk$NORMAL ";
23 echo "Usage: $0 {start}"
28 # End $rc_base/init.d/smartenabler