# HG changeset patch # User Pascal Bellard # Date 1551285803 -3600 # Node ID 3de5e6325aab58b93455e3f64be3260e6fa44ef7 # Parent d22f6fcf51da6c96df904b2cf9ac84fc57f5a2e0 Remove ashism == diff -r d22f6fcf51da -r 3de5e6325aab base-tiny/receipt --- a/base-tiny/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/base-tiny/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -50,8 +50,8 @@ Network configuration diff -r d22f6fcf51da -r 3de5e6325aab bootloader/stuff/usr/bin/bootloader --- a/bootloader/stuff/usr/bin/bootloader Sat Jul 07 11:56:18 2018 +0200 +++ b/bootloader/stuff/usr/bin/bootloader Wed Feb 27 17:43:23 2019 +0100 @@ -205,7 +205,7 @@ rm -f $bs } -if [ "$FORMAT" == "0" ]; then # unsplitted +if [ "$FORMAT" = "0" ]; then # unsplitted floppyset > $PREFIX exit fi diff -r d22f6fcf51da -r 3de5e6325aab busybox/stuff/httpd_helper.sh --- a/busybox/stuff/httpd_helper.sh Sat Jul 07 11:56:18 2018 +0200 +++ b/busybox/stuff/httpd_helper.sh Wed Feb 27 17:43:23 2019 +0100 @@ -111,7 +111,7 @@ dd bs=1 count=$(($count - ($tmp * $page) )) } -if [ "$REQUEST_METHOD$POST__NAMES" == "POST" ]; then +if [ "$REQUEST_METHOD$POST__NAMES" = "POST" ]; then prefix=/tmp/httpd_post mkdir $prefix$$ now=$(stat -c %Y $prefix$$) diff -r d22f6fcf51da -r 3de5e6325aab busybox/stuff/udhcp.script --- a/busybox/stuff/udhcp.script Sat Jul 07 11:56:18 2018 +0200 +++ b/busybox/stuff/udhcp.script Wed Feb 27 17:43:23 2019 +0100 @@ -2,7 +2,7 @@ [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 -[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness +[ "$subnet" = "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness RESOLV_CONF="/etc/resolv.conf" [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" @@ -33,7 +33,7 @@ for i in $dns ; do echo nameserver $i done >> $RESOLV_CONF - [ "$1" == "bound" ] && for i in /etc/ipup.d/*; do + [ "$1" = "bound" ] && for i in /etc/ipup.d/*; do [ -x $i ] && $i $interface $ip $dns done ;; esac diff -r d22f6fcf51da -r 3de5e6325aab custom-console/receipt --- a/custom-console/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/custom-console/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -21,7 +21,7 @@ { respawn=respawn [ "$ASKFIRST" ] && respawn=askfirst - [ "$KERNEL_TTY" == "none" ] || + [ "$KERNEL_TTY" = "none" ] || echo -n " console=tty0 console=$KERNEL_TTY,${SPEED_KERNEL_TTY}n8" \ >> $1/boot/cmdline TTY_LIST="" @@ -131,7 +131,7 @@ EOT for i in $(seq 0 3); do echo -n "ttyS$i" done cat <$i" done echo -e "\n

" diff -r d22f6fcf51da -r 3de5e6325aab fbvnc-config/receipt --- a/fbvnc-config/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/fbvnc-config/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -33,18 +33,18 @@ Autostart - never - always - ask during boot - with kernel argument 'fbvnc=server:port' + never + always + ask during boot + with kernel argument 'fbvnc=server:port' Bits per pixel - 8 - 16 - 32 + 8 + 16 + 32 diff -r d22f6fcf51da -r 3de5e6325aab fbvnc-ssh/receipt --- a/fbvnc-ssh/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/fbvnc-ssh/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -27,7 +27,7 @@ Remove virtual consoles ? - keep virtual consoles 3 to 6 + keep virtual consoles 3 to 6 keep VNC console only @@ -61,7 +61,7 @@ # From fbvnc-ssh EOT - [ "$VNCONLY" == "yes" ] && cat >> $1/etc/init.d/local.sh <> $1/etc/init.d/local.sh <> $1/etc/init.d/local.sh <> $1/etc/init.d/pnp.sh } diff -r d22f6fcf51da -r 3de5e6325aab keyboard/receipt --- a/keyboard/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/keyboard/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -142,7 +142,7 @@ post_install() { - if [ "$USECMDLINE" == "yes" ]; then + if [ "$USECMDLINE" = "yes" ]; then mkdir $1/bin cat > $1/bin/loadkmap < $1/etc/locale.conf < /dev/null [ -n "$TIMEZONE" ] && echo "$TIMEZONE" > $1/etc/TZ for i in $1/usr/share/kmap/*.kmap ; do - [ $i == $1/usr/share/kmap/$KEYBOARD.kmap ] || rm $i + [ $i = $1/usr/share/kmap/$KEYBOARD.kmap ] || rm $i done } diff -r d22f6fcf51da -r 3de5e6325aab lan-config/receipt --- a/lan-config/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/lan-config/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -68,7 +68,7 @@ LAN Network configuration @@ -99,7 +99,7 @@ -e "s/^LAN_STATIC=.*/LAN_STATIC=\"$STATIC\"/" \ -e "s/^LAN_DHCP=.*/LAN_DHCP=\"$DHCP\"/" \ -e "s/^LAN_IP=.*/LAN_IP=\"$IP\"/" $1/etc/network.conf - [ "$ROUTING" == "ON" ] && cat >> $1/etc/init.d/local.sh <> $1/etc/init.d/local.sh < /proc/sys/net/ipv4/ip_forward diff -r d22f6fcf51da -r 3de5e6325aab linux/stuff/pack --- a/linux/stuff/pack Sat Jul 07 11:56:18 2018 +0200 +++ b/linux/stuff/pack Wed Feb 27 17:43:23 2019 +0100 @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$1" == "--build" ]; then #install-begin +if [ "$1" = "--build" ]; then #install-begin uuencode -m - < unpacklz4.bin | sed -e '/^unpacklz4\.bin$/r/dev/stdin' \ -e '/^unpacklz4\.bin$/d' -i $0 cat helper.bin 2>/dev/null | uuencode -m - | sed -e \ diff -r d22f6fcf51da -r 3de5e6325aab lpd-spooling-config/stuff/lpd-helper --- a/lpd-spooling-config/stuff/lpd-helper Sat Jul 07 11:56:18 2018 +0200 +++ b/lpd-spooling-config/stuff/lpd-helper Wed Feb 27 17:43:23 2019 +0100 @@ -2,7 +2,7 @@ n=0 for i in $(ls -tr /var/spool); do - [ /var/spool/$i == $PWD ] && break + [ /var/spool/$i = $PWD ] && break n=$(($n+1)) done cat ./"$DATAFILE" >/dev/lp$n diff -r d22f6fcf51da -r 3de5e6325aab module-3c509/receipt --- a/module-3c509/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/module-3c509/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -47,8 +47,8 @@ Tranceiver @@ -57,7 +57,7 @@ EOT for i in $(seq 10 -1 1); do cat <$i + EOT done cat <$i + EOT done cat <Media @@ -63,7 +63,7 @@ EOT for i in $(seq 0 6); do cat <$i + EOT done cat <> $1/modules } diff -r d22f6fcf51da -r 3de5e6325aab module-tlan/receipt --- a/module-tlan/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/module-tlan/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -45,16 +45,16 @@ Speed Mode diff -r d22f6fcf51da -r 3de5e6325aab module-via-rhine/receipt --- a/module-via-rhine/receipt Sat Jul 07 11:56:18 2018 +0200 +++ b/module-via-rhine/receipt Wed Feb 27 17:43:23 2019 +0100 @@ -44,7 +44,7 @@ EOT for i in $(seq 10 -1 1); do cat <$i + EOT done cat <$i + EOT done cat <Connection script diff -r d22f6fcf51da -r 3de5e6325aab wiki/stuff/var/www/wiki/index.sh --- a/wiki/stuff/var/www/wiki/index.sh Sat Jul 07 11:56:18 2018 +0200 +++ b/wiki/stuff/var/www/wiki/index.sh Wed Feb 27 17:43:23 2019 +0100 @@ -45,7 +45,7 @@ { local tmp tmp="$(echo $1$(date +%d) | md5sum | cut -c1-8)" - [ "$(POST sc)" == "$1" ] && AUTH=$tmp || [ "$AUTH" == "$tmp" ] + [ "$(POST sc)" = "$1" ] && AUTH=$tmp || [ "$AUTH" = "$tmp" ] } authentified() @@ -75,7 +75,7 @@ grep -q "^$name()" $i || continue . $i eval $name "$@" - [ $? == 0 ] && status=true + [ $? = 0 ] && status=true done 2> /tmp/tazwiki$$stderr [ -s /tmp/tazwiki$$stderr ] && logger -t "httpd/wiki/plugin" < /tmp/tazwiki$$stderr @@ -152,7 +152,7 @@ CONTENT="$(cat "$PAGE_txt")" fi # Restaurer une page - [ -n "$(GET page)" -a -n "$gtime" -a "$(GET restore)" == 1 ] && + [ -n "$(GET page)" -a -n "$gtime" -a "$(GET restore)" = 1 ] && [ -r "$BACKUP_DIR$PAGE_TITLE/$gtime" ] && CONTENT="$(cat $BACKUP_DIR$PAGE_TITLE/$gtime)" CONTENT="$(sed -e 's/\$/\$/g' -e 's/\\/\\/g' <$RECENT_CHANGES" -[ "$action" == "recent" ] && RECENT=$RECENT_CHANGES +[ "$action" = "recent" ] && RECENT=$RECENT_CHANGES HOME="$HOME_BUTTON" -[ "$PAGE_TITLE" == "$START_PAGE" -a "$action" != "search" ] && HOME=$HOME_BUTTON +[ "$PAGE_TITLE" = "$START_PAGE" -a "$action" != "search" ] && HOME=$HOME_BUTTON HELP="\1$HELP_BUTTON\2" [ "$action" != "edit" ] && HELP="" diff -r d22f6fcf51da -r 3de5e6325aab wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh --- a/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh Sat Jul 07 11:56:18 2018 +0200 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh Wed Feb 27 17:43:23 2019 +0100 @@ -47,7 +47,7 @@ secret="admin.secret" if [ -n "$(POST setpass)" ]; then if [ -z "$curpass" ]; then # unauthorized - if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" == \ + if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" = \ "$(echo $(POST password) | md5sum)" ]; then curpass="$(POST password)" fi diff -r d22f6fcf51da -r 3de5e6325aab wiki/stuff/var/www/wiki/plugins/wkp_Password.sh --- a/wiki/stuff/var/www/wiki/plugins/wkp_Password.sh Sat Jul 07 11:56:18 2018 +0200 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Password.sh Wed Feb 27 17:43:23 2019 +0100 @@ -15,7 +15,7 @@ esac hash="$(sed '/{HASHPASSWORD=.*}/!d;s/.*{HASHPASSWORD=\([^}]*\)}.*/\1/;q' <$1)" cookie="pagepass$(pagepass_hash $PWD$PAGE_txt)" - [ "$(COOKIE $cookie)" == "$hash" ] && return + [ "$(COOKIE $cookie)" = "$hash" ] && return header echo "" exit 0 @@ -24,9 +24,9 @@ action() { - [ "$1" == "pagepass" ] || return 1 + [ "$1" = "pagepass" ] || return 1 uri="$SCRIPT_NAME?page=$(POST page)&auth=$(POST auth)" - if [ "$(pagepass_hash $(POST pass))" == "$(POST hash)" ]; then + if [ "$(pagepass_hash $(POST pass))" = "$(POST hash)" ]; then header "HTTP/1.0 302 Found" \ "location: $uri" \ "Set-Cookie: $(POST cookie)=$(POST hash)" diff -r d22f6fcf51da -r 3de5e6325aab wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh --- a/wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh Sat Jul 07 11:56:18 2018 +0200 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Upload.sh Wed Feb 27 17:43:23 2019 +0100 @@ -63,7 +63,7 @@ ls pages/data | while read file; do stat -c "%s %n" pages/data/$file done | while read size file; do - [ $filesize == $size ] && + [ $filesize = $size ] && cmp $(FILE file tmpname) $file > /dev/null && ln -s $(basename $file) pages/data/$n$name && break done