]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/smartenabler
OpenVPN converter: Fix coding style and verbose output.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / smartenabler
index 489560bd2c93b95b71041afe5a5e2b683158fa2a..4df693656fea4877c8459963300713bf6354b929 100644 (file)
@@ -7,7 +7,7 @@
 case "$1" in
        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 `ls -1 /sys/block | grep -E '^sd' | sort | uniq`; do 
                    /usr/sbin/smartctl --smart=on /dev/$disk > /dev/nul;
                    if [ ${?} = 0 ]; then 
                        boot_mesg -n "$SUCCESS$disk$NORMAL ";