mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
Merge branch 'next' into arm-port
This commit is contained in:
@@ -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 `find /sys/block/* -maxdepth 0 ! -name sr* ! -name ram* ! -name loop* -exec basename {} \; | sort | uniq`; do
|
||||
/usr/sbin/smartctl --smart=on /dev/$disk > /dev/nul;
|
||||
if [ ${?} = 0 ]; then
|
||||
boot_mesg -n "$SUCCESS$disk$NORMAL ";
|
||||
|
||||
Reference in New Issue
Block a user