slitaz-boot-scripts diff etc/init.d/network.sh @ rev 416
Use 'action' before 'status' in pair
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 27 12:48:01 2015 +0200 (2015-11-27) |
parents | dcdb496ee31f |
children | 73e2c7d041ab |
line diff
1.1 --- a/etc/init.d/network.sh Thu Aug 27 21:19:17 2015 +0200 1.2 +++ b/etc/init.d/network.sh Fri Nov 27 12:48:01 2015 +0200 1.3 @@ -22,12 +22,12 @@ 1.4 1.5 boot() { 1.6 # Set hostname 1.7 - echo -n "Setting hostname to: $(cat /etc/hostname)" 1.8 + action "Setting hostname to: $(cat /etc/hostname)" 1.9 /bin/hostname -F /etc/hostname 1.10 status 1.11 1.12 # Configure loopback interface 1.13 - echo -n 'Configuring loopback...' 1.14 + action 'Configuring loopback...' 1.15 /sbin/ifconfig lo 127.0.0.1 up 1.16 /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo 1.17 status 1.18 @@ -59,7 +59,7 @@ 1.19 # notwithstanding to priority when scan_ssid=1 1.20 current_ssid="$(wpa_cli list_networks 2>/dev/null | fgrep '[CURRENT]' | cut -f2)" 1.21 if [ "$current_ssid" != "$WIFI_ESSID" ]; then 1.22 - echo "Connecting to $WIFI_ESSID..." 1.23 + action 'Connecting to $WIFI_ESSID...' 1.24 for i in $(seq 5); do 1.25 index=$(wpa_cli list_networks 2>/dev/null | \ 1.26 grep -m1 -F $'\t'$WIFI_ESSID$'\t' | head -n1 | cut -f1) 1.27 @@ -96,7 +96,7 @@ 1.28 /etc/network.conf 1.29 fi 1.30 1.31 - echo -n "Configuring Wi-Fi interface $WIFI_INTERFACE..." 1.32 + action 'Configuring Wi-Fi interface $WIFI_INTERFACE...' 1.33 ifconfig $WIFI_INTERFACE up 2>/dev/null 1.34 if iwconfig $WIFI_INTERFACE | fgrep -q 'Tx-Power'; then 1.35 iwconfig $WIFI_INTERFACE txpower on