wok diff syslinux/stuff/iso2exe/init @ rev 20891
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:20:18 2019 +0100 (2019-02-26) |
parents | c89d25976dbe |
children | 02c70d036ea0 |
line diff
1.1 --- a/syslinux/stuff/iso2exe/init Thu Feb 14 13:44:59 2019 +0100 1.2 +++ b/syslinux/stuff/iso2exe/init Tue Feb 26 08:20:18 2019 +0100 1.3 @@ -68,7 +68,7 @@ 1.4 esac 1.5 done ;; 1.6 --menu|--radiolist) 1.7 - [ "$1" == "--menu" ] && shft=2 || shft=3 1.8 + [ "$1" = "--menu" ] && shft=2 || shft=3 1.9 label="" 1.10 [ "$2" ] && label="\n$2" 1.11 shift 5 1.12 @@ -138,7 +138,7 @@ 1.13 1.14 checkmagic() 1.15 { 1.16 - [ -s $1 ] && [ $(getarg magic) == $(get 18 $1 2) ] 1.17 + [ -s $1 ] && [ $(getarg magic) = $(get 18 $1 2) ] 1.18 } 1.19 1.20 getiso() 1.21 @@ -667,7 +667,7 @@ 1.22 hascustomconf() 1.23 { 1.24 [ "$(ddq bs=2k skip=$(customsector) if="/mnt/$ISO" | ddq bs=1 count=6)" \ 1.25 - == "#!boot" ] 1.26 + = "#!boot" ] 1.27 } 1.28 1.29 gotcustomconf() 1.30 @@ -705,7 +705,7 @@ 1.31 { 1.32 dotwait "Checking iso image" 1.33 [ "$(ddq if=/mnt/$ISO bs=2k skip=16 \ 1.34 - count=$(($(get 32848 /mnt/$ISO 4)-16)) | md5sum)" == \ 1.35 + count=$(($(get 32848 /mnt/$ISO 4)-16)) | md5sum)" = \ 1.36 "$(ddq if=/mnt/$ISO bs=16 count=1 skip=2047 | od -N 16 -t x1 -An | \ 1.37 sed 's/ //g') -" ] && echo "OK" || echo "ERROR" 1.38 echo -en "\rChecking iso hybrid boot..." 1.39 @@ -730,7 +730,7 @@ 1.40 *) break ;; 1.41 esac 1.42 done | md5sum | cut -c1-32)" 1.43 - [ "$md5" == "$(cat $TMP)" ] && echo "OK" || echo "ERROR" 1.44 + [ "$md5" = "$(cat $TMP)" ] && echo "OK" || echo "ERROR" 1.45 rm -f $TMP 1.46 fi 1.47 rm -f /tmp/wait 1.48 @@ -738,7 +738,7 @@ 1.49 read n 1.50 } 1.51 1.52 -if [ "$1" == "--build" ]; then #install-begin 1.53 +if [ "$1" = "--build" ]; then #install-begin 1.54 cp $0 $0.tmp 1.55 uuencode -m - < ifmem.bin | sed -e 's|^[ \t]*||;s|[ \t]*###.*||' \ 1.56 -e 's| *;;|;;|;s|\t\t*|\t|g' \ 1.57 @@ -1130,7 +1130,7 @@ 1.58 1.59 hasflavinfo() 1.60 { 1.61 - [ "$(flavdata | ddq bs=1 count=7)" == "0707010" ] && 1.62 + [ "$(flavdata | ddq bs=1 count=7)" = "0707010" ] && 1.63 echo -en "\"$1\" \"$2\"" 1.64 } 1.65