slitaz-modular rev 178

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:25:16 2019 +0100 (2019-02-26)
parents 609f91db0796
children 61a62b964982
files initramfs/usr/bin/local-mirror initramfs/usr/bin/makegraphs initramfs/usr/bin/slitaz-installer tank/overlay/etc/init.d/system.sh
line diff
     1.1 --- a/initramfs/usr/bin/local-mirror	Wed Mar 30 09:46:37 2016 +0200
     1.2 +++ b/initramfs/usr/bin/local-mirror	Tue Feb 26 08:25:16 2019 +0100
     1.3 @@ -452,7 +452,7 @@
     1.4  			fi
     1.5  		done
     1.6  		#echo "127.0.0.1 localhost $(cat /etc/hostname)" > /etc/hosts
     1.7 -		[ "$IP_ADDR" == "127.0.0.1" ] && echo "127.0.0.1 tazpanel.slitaz.org" >> /etc/hosts
     1.8 +		[ "$IP_ADDR" = "127.0.0.1" ] && echo "127.0.0.1 tazpanel.slitaz.org" >> /etc/hosts
     1.9  		for hostname in $ADDRESS; do
    1.10  				if [ "$hostname" = "www.slitaz.org" ]; then
    1.11  					echo "$IP_ADDR $hostname slitaz.org" >> /etc/hosts
     2.1 --- a/initramfs/usr/bin/makegraphs	Wed Mar 30 09:46:37 2016 +0200
     2.2 +++ b/initramfs/usr/bin/makegraphs	Tue Feb 26 08:25:16 2019 +0100
     2.3 @@ -153,7 +153,7 @@
     2.4  
     2.5  updatediskgraph() {
     2.6  	period=$1
     2.7 -	[ "$period" == "day" ] && maxdisk="$(getmax disk)"
     2.8 +	[ "$period" = "day" ] && maxdisk="$(getmax disk)"
     2.9  	info=""
    2.10  	[ -r $2 ] &&
    2.11  	info="[ $(fdisk -l 2> /dev/null | grep "^Disk $2:" | \
    2.12 @@ -288,7 +288,7 @@
    2.13  	local i
    2.14  	d=$(stat -c %04D $1)
    2.15  	for i in /dev/* ; do 
    2.16 -		[ $(stat -c "%02t%02T" $i) == $d ] || continue
    2.17 +		[ $(stat -c "%02t%02T" $i) = $d ] || continue
    2.18  		echo $i
    2.19  		return
    2.20  	done
     3.1 --- a/initramfs/usr/bin/slitaz-installer	Wed Mar 30 09:46:37 2016 +0200
     3.2 +++ b/initramfs/usr/bin/slitaz-installer	Tue Feb 26 08:25:16 2019 +0100
     3.3 @@ -381,7 +381,7 @@
     3.4  	fi
     3.5  	sleep 2
     3.6  
     3.7 -	if [ "$MKFS_TARGET_DEV" == "ext3" ]; then
     3.8 +	if [ "$MKFS_TARGET_DEV" = "ext3" ]; then
     3.9  		echo "XXX" && echo 50
    3.10  		echo -e "\nExecuting mkfs.ext3 on $TARGET_DEV"
    3.11  		echo "XXX"
    3.12 @@ -393,7 +393,7 @@
    3.13  		sleep 2
    3.14  	fi
    3.15  
    3.16 -	if [ "$MKFS_HOME" == "ext3" ]; then
    3.17 +	if [ "$MKFS_HOME" = "ext3" ]; then
    3.18  		echo "XXX" && echo 70
    3.19  		echo -e "\nExecuting mkfs.ext3 on $HOME_DEV"
    3.20  		echo "XXX"
    3.21 @@ -422,7 +422,7 @@
    3.22  # Get a clean target device (15%).
    3.23  clean_target()
    3.24  {
    3.25 -	if [ "$CLEAN" == "clean" ]; then
    3.26 +	if [ "$CLEAN" = "clean" ]; then
    3.27  		echo "XXX" && echo 15
    3.28  		echo -e "\nCleaning the root partition ($TARGET_DEV)..."
    3.29  		echo "XXX"
    3.30 @@ -1061,7 +1061,7 @@
    3.31  	echo -e "\nInstalling any packages..."
    3.32  	echo "XXX"
    3.33  	sleep 2
    3.34 -	if [ "$packages" == "0" ]; then
    3.35 +	if [ "$packages" = "0" ]; then
    3.36  		echo "packages to install: 0" >> $LOG
    3.37  	else
    3.38  		onepkg=$((48/$packages))
     4.1 --- a/tank/overlay/etc/init.d/system.sh	Wed Mar 30 09:46:37 2016 +0200
     4.2 +++ b/tank/overlay/etc/init.d/system.sh	Tue Feb 26 08:25:16 2019 +0100
     4.3 @@ -80,7 +80,7 @@
     4.4  [ -x /usr/bin/tazpanel ] && tazpanel start
     4.5  
     4.6  # Auto recharge packages list (after network connection of course)
     4.7 -[ "$RECHARGE_PACKAGES_LIST" == "yes" ] && tazpkg recharge &
     4.8 +[ "$RECHARGE_PACKAGES_LIST" = "yes" ] && tazpkg recharge &
     4.9  
    4.10  # Locale config. Do a gui config for both lang/keymap.
    4.11  echo "Checking if /etc/locale.conf exists... "