tazpanel diff network.cgi @ rev 635
Use busybox blkid
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 27 16:12:27 2020 +0000 (2020-09-27) |
parents | 95d7ed740572 |
children | 9f6e7841d19c |
line diff
1.1 --- a/network.cgi Sat Oct 07 12:10:45 2017 +0200 1.2 +++ b/network.cgi Sun Sep 27 16:12:27 2020 +0000 1.3 @@ -404,7 +404,7 @@ 1.4 fi 1.5 1.6 # Check encryption type 1.7 - if [ "$ENCRYPTION" == 'on' ]; then 1.8 + if [ "$ENCRYPTION" = 'on' ]; then 1.9 # "WPA" or "WPA2" or "WPA/WPA2" (maybe also "WPA2/WPA") 1.10 ENC_SIMPLE=$(echo "$SCAN" | sed -n '/.*WPA.*/ s|.*\(WPA[^ ]*\).*|\1|p') 1.11 ENC_SIMPLE=$(echo $ENC_SIMPLE | sed 's| |/|') 1.12 @@ -676,7 +676,7 @@ 1.13 [ $(cat $ip_forward) -eq 1 ] && echo ' checked')/> 1.14 EOT 1.15 _ 'forward packets between interfaces' 1.16 - [ "$REMOTE_USER" == 'root' ] && cat <<EOT 1.17 + [ "$REMOTE_USER" = 'root' ] && cat <<EOT 1.18 <button form="mainform" name="toggleipforward" data-icon="@ok@">$(_ 'Change')</button> 1.19 EOT 1.20 cat <<EOT 1.21 @@ -725,7 +725,7 @@ 1.22 [ $(($(cat /sys/class/net/$i/flags) & 0x1080)) -eq 4096 ] && 1.23 echo $i 1.24 done)" 1.25 - if [ "$REMOTE_USER" == "root" -a -n "$devs" ]; then 1.26 + if [ "$REMOTE_USER" = "root" -a -n "$devs" ]; then 1.27 cat <<EOT 1.28 <section> 1.29 <header id="vlan">$(_ 'VLAN')</header> 1.30 @@ -799,7 +799,7 @@ 1.31 <section> 1.32 <header id="arp">$(_ 'ARP table')</header> 1.33 EOT 1.34 - if [ "$REMOTE_USER" == "root" ]; then 1.35 + if [ "$REMOTE_USER" = "root" ]; then 1.36 echo "<table>" 1.37 arp -n | while read line ; do 1.38 cat <<EOT 1.39 @@ -837,7 +837,7 @@ 1.40 </section> 1.41 1.42 EOT 1.43 - [ "$REMOTE_USER" == "root" -a "$(which iptables-save)" ] && cat <<EOT 1.44 + [ "$REMOTE_USER" = "root" -a "$(which iptables-save)" ] && cat <<EOT 1.45 <section> 1.46 <header id="iptables">$(_ 'Firewall') 1.47 $(edit_button /etc/knockd.conf "$(_ 'Port knocker')")