# HG changeset patch # User Pascal Bellard # Date 1551166205 -3600 # Node ID bf8941ab3cc3fdf30b57bcb6adc5edcabf91b60e # Parent de45f1a889074e0cfbed6f2ec18c6346e2107cf6 Remove ashism == diff -r de45f1a88907 -r bf8941ab3cc3 boot.cgi --- a/boot.cgi Mon Jul 30 12:18:05 2018 +0200 +++ b/boot.cgi Tue Feb 26 08:30:05 2019 +0100 @@ -36,7 +36,7 @@ case " $(GET) " in *\ syslog\ *) logtype="$(GET syslog)" - [ "${logtype:-syslog}" == 'syslog' ] && logtype='messages' + [ "${logtype:-syslog}" = 'syslog' ] && logtype='messages' xhtml_header "$(_ 'System logs')" cat <$i EOT @@ -487,7 +487,7 @@ EOT - [ "$REMOTE_USER" == "root" -a -x /usr/bin/taziso ] && cat <$(_ 'ISO mine') EOT [ -w /boot/grub/menu.lst ] && cat <>kernel [ $(($syssz % 32)) -ne 0 ] && ddq bs=16 of=/dev/null count=$((32 - ($syssz % 32))) - if [ $(get $Magic kernel 4) == 1400005704 ]; then + if [ $(get $Magic kernel 4) = 1400005704 ]; then ddq bs=1 count=200 skip=$((512+$(get 0x20E kernel 2))) \ if=kernel | strings | sed q len=$(get $RamfsLenOfs kernel 4) @@ -379,7 +379,7 @@ rm -f $bs } -if [ "$FORMAT" == "0" ]; then # unsplitted +if [ "$FORMAT" = "0" ]; then # unsplitted floppyset > $PREFIX PAD=$(( 512 - ($(stat -c %s $PREFIX) % 512) )) [ $PAD -ne 512 ] && ddq if=/dev/zero bs=1 count=$PAD >> $PREFIX diff -r de45f1a88907 -r bf8941ab3cc3 hardware.cgi --- a/hardware.cgi Mon Jul 30 12:18:05 2018 +0200 +++ b/hardware.cgi Tue Feb 26 08:30:05 2019 +0100 @@ -428,7 +428,7 @@ [ -n "$mp" ] && action="umount" type=$(blkid $fs | sed '/ TYPE=/!d;s/.* TYPE="\([^"]*\).*/\1/') [ -n "$type" ] || continue - [ "$type" == "swap" ] && action="swapon" + [ "$type" = "swap" ] && action="swapon" if grep -q "^$fs " /proc/swaps; then action="swapoff" set -- $(grep "^$fs " /proc/swaps) @@ -459,7 +459,7 @@ case " $bootdevs " in *\ $fs\ *) dsk="$dsk";; esac radio="" - [ "$REMOTE_USER" == "root" ] || radio="" + [ "$REMOTE_USER" = "root" ] || radio="" cat < $radio