slitaz-boot-scripts diff etc/init.d/network.sh @ rev 302
Huge clean, colored rcS, faster, fix sound and other devices (used need a devtmpfs mounted on /dev) disabled logging for now
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 01 21:46:07 2012 +0200 (2012-06-01) |
parents | befbf0dc7341 |
children | c2eb90cb74f2 |
line diff
1.1 --- a/etc/init.d/network.sh Sat Mar 03 18:14:18 2012 +0100 1.2 +++ b/etc/init.d/network.sh Fri Jun 01 21:46:07 2012 +0200 1.3 @@ -1,6 +1,7 @@ 1.4 #!/bin/sh 1.5 -# /etc/init.d/network.sh - Network initialization boot script. 1.6 -# Config file is: /etc/network.conf 1.7 +# 1.8 +# /etc/init.d/network.sh : Network initialization boot script 1.9 +# Configuration file : /etc/network.conf 1.10 # 1.11 . /etc/init.d/rc.functions 1.12 1.13 @@ -12,7 +13,7 @@ 1.14 1.15 boot() { 1.16 # Set hostname. 1.17 - echo -n "Setting hostname..." 1.18 + echo -n "Setting hostname to: $(cat /etc/hostname)" 1.19 /bin/hostname -F /etc/hostname 1.20 status 1.21 1.22 @@ -30,7 +31,7 @@ 1.23 1.24 # For wifi. Users just have to enable it through yes and usually 1.25 # essid any will work and the interface is autodetected. 1.26 -wifi() { 1.27 +wifi() { 1.28 if [ "$WIFI" = "yes" ] || fgrep -q "wifi" /proc/cmdline; then 1.29 ifconfig $INTERFACE down 1.30 1.31 @@ -52,7 +53,7 @@ 1.32 iwconfig $WIFI_INTERFACE txpower on 1.33 fi 1.34 status 1.35 - 1.36 + 1.37 [ -n "$WPA_DRIVER" ] || WPA_DRIVER="wext" 1.38 IWCONFIG_ARGS="" 1.39 [ -n "$WIFI_MODE" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS mode $WIFI_MODE"