tazpanel diff hardware.cgi @ rev 626

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:30:05 2019 +0100 (2019-02-26)
parents ffb5734bba5f
children b932799f8ae1
line diff
     1.1 --- a/hardware.cgi	Thu Dec 21 16:29:11 2017 +0100
     1.2 +++ b/hardware.cgi	Tue Feb 26 08:30:05 2019 +0100
     1.3 @@ -428,7 +428,7 @@
     1.4  			[ -n "$mp" ] && action="umount"
     1.5  			type=$(blkid $fs | sed '/ TYPE=/!d;s/.* TYPE="\([^"]*\).*/\1/')
     1.6  			[ -n "$type" ] || continue
     1.7 -			[ "$type" == "swap" ] && action="swapon"
     1.8 +			[ "$type" = "swap" ] && action="swapon"
     1.9  			if grep -q "^$fs " /proc/swaps; then
    1.10  				action="swapoff"
    1.11  				set -- $(grep "^$fs " /proc/swaps)
    1.12 @@ -459,7 +459,7 @@
    1.13  			case " $bootdevs " in *\ $fs\ *) dsk="<i>$dsk</i>";; esac
    1.14  
    1.15  			radio="<input type=\"radio\" name=\"device\" value=\"$action $fs\" id=\"${fs##*/}\"/>"
    1.16 -			[ "$REMOTE_USER" == "root" ] || radio=""
    1.17 +			[ "$REMOTE_USER" = "root" ] || radio=""
    1.18  			cat <<EOT
    1.19  			<tr>
    1.20  				<td>$radio<!--
    1.21 @@ -491,7 +491,7 @@
    1.22  			</tbody>
    1.23  		</table>
    1.24  EOT
    1.25 -		[ "$REMOTE_USER" == "root" ] && cat <<EOT
    1.26 +		[ "$REMOTE_USER" = "root" ] && cat <<EOT
    1.27  		$(lib crypto input)
    1.28  
    1.29  		<footer>
    1.30 @@ -570,7 +570,7 @@
    1.31  	*) ro="" ;;
    1.32  	esac
    1.33  	size=$(blk2h $(cat $dir/size))
    1.34 -	[ "$size" == "0.0K" ] && size="" && ro=""
    1.35 +	[ "$size" = "0.0K" ] && size="" && ro=""
    1.36  	set -- $(losetup $devloop)
    1.37  	set -- "${3:-$(cat $dir/loop/backing_file)}" "${2:-$(cat $dir/loop/offset)}" ${ro// /&nbsp;}
    1.38  	cat <<EOT