slitaz-boot-scripts diff etc/init.d/network.sh @ rev 436

etc/init.d/{bootopts.sh,network.sh,rcS}: follow changes in the libtaz.sh for i18n functions.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jan 09 02:20:10 2017 +0200 (2017-01-09)
parents d8e26d386dd6
children 354d476130a4
line diff
     1.1 --- a/etc/init.d/network.sh	Sat Sep 17 21:17:54 2016 +0200
     1.2 +++ b/etc/init.d/network.sh	Mon Jan 09 02:20:10 2017 +0200
     1.3 @@ -41,7 +41,7 @@
     1.4  
     1.5  boot() {
     1.6  	# Set hostname
     1.7 -	action "Setting hostname to: $(cat /etc/hostname)"
     1.8 +	action 'Setting hostname to: %s' "$(cat /etc/hostname)"
     1.9  	/bin/hostname -F /etc/hostname
    1.10  	status
    1.11  
    1.12 @@ -115,7 +115,7 @@
    1.13  		current_ssid="$(wpa_cli list_networks 2>/dev/null | fgrep '[CURRENT]' | cut -f2)"
    1.14  		if [ "$current_ssid" != "$WIFI_ESSID" ]; then
    1.15  			notification start "$(_ 'Connecting to %s...' "$WIFI_ESSID")"
    1.16 -			action 'Connecting to $WIFI_ESSID...'
    1.17 +			action 'Connecting to %s...' "$WIFI_ESSID"
    1.18  			for i in $(seq 5); do
    1.19  				index=$(wpa_cli list_networks 2>/dev/null | \
    1.20  					grep -m1 -F $'\t'$WIFI_ESSID$'\t' | head -n1 | cut -f1)
    1.21 @@ -153,7 +153,7 @@
    1.22  		fi
    1.23  
    1.24  		notification start "$(_ 'Starting Wi-Fi interface %s...' "$WIFI_INTERFACE")"
    1.25 -		action 'Configuring Wi-Fi interface $WIFI_INTERFACE...'
    1.26 +		action 'Configuring Wi-Fi interface %s...' "$WIFI_INTERFACE"
    1.27  		ifconfig $WIFI_INTERFACE up 2>/dev/null
    1.28  		if iwconfig $WIFI_INTERFACE | fgrep -q 'Tx-Power'; then
    1.29  			iwconfig $WIFI_INTERFACE txpower on