slitaz-modular diff initramfs/usr/bin/makegraphs @ rev 178
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:25:16 2019 +0100 (2019-02-26) |
parents | 87aa12b14afa |
children | 61a62b964982 |
line diff
1.1 --- a/initramfs/usr/bin/makegraphs Tue Apr 24 18:55:39 2012 +0000 1.2 +++ b/initramfs/usr/bin/makegraphs Tue Feb 26 08:25:16 2019 +0100 1.3 @@ -153,7 +153,7 @@ 1.4 1.5 updatediskgraph() { 1.6 period=$1 1.7 - [ "$period" == "day" ] && maxdisk="$(getmax disk)" 1.8 + [ "$period" = "day" ] && maxdisk="$(getmax disk)" 1.9 info="" 1.10 [ -r $2 ] && 1.11 info="[ $(fdisk -l 2> /dev/null | grep "^Disk $2:" | \ 1.12 @@ -288,7 +288,7 @@ 1.13 local i 1.14 d=$(stat -c %04D $1) 1.15 for i in /dev/* ; do 1.16 - [ $(stat -c "%02t%02T" $i) == $d ] || continue 1.17 + [ $(stat -c "%02t%02T" $i) = $d ] || continue 1.18 echo $i 1.19 return 1.20 done