X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F23networking;h=603116fe0c353a5d4de69eb880db8f7695224e31;hb=0b96ad9583351a7dae68711acf886298b1d25b63;hp=aeff35170de276f145b0c58d50e962d9ccdf5154;hpb=6a3e789117d7c4254aee7905e0c3065a5202d79f;p=live-boot-grml.git diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index aeff351..603116f 100755 --- a/scripts/live-bottom/23networking +++ b/scripts/live-bottom/23networking @@ -33,14 +33,14 @@ log_begin_msg "Preconfiguring networking..." IFFILE="/root/etc/network/interfaces" -if [ "${STATICIP}" = "frommedia" -a -e "$IFFILE" ] +if [ "${STATICIP}" = "frommedia" -a -e "${IFFILE}" ] then # will use existent /etc/network/interfaces log_end_msg exit 0 fi -cat > "$IFFILE" << EOF +cat > "${IFFILE}" << EOF auto lo iface lo inet loopback @@ -60,7 +60,7 @@ then ifnetmask="$(echo ${ifline} | cut -f3 -d ',')" ifgateway="$(echo ${ifline} | cut -f4 -d ',')" -cat >> "$IFFILE" << EOF +cat >> "${IFFILE}" << EOF auto ${ifname} iface ${ifname} inet static address ${ifaddress} @@ -82,16 +82,16 @@ else fi # iterate the physical interfaces and add them to the interfaces list - if [ "$method" != dhcp ] || [ ! -x /root/usr/sbin/NetworkManager ] + if [ "${method}" != dhcp ] || [ ! -x /root/usr/sbin/NetworkManager ] then for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan* do - [ -e $interface ] || continue - i="$(basename $interface)" + [ -e ${interface} ] || continue + i="$(basename ${interface})" -cat >> "$IFFILE" << EOF -auto $i -iface $i inet $method +cat >> "${IFFILE}" << EOF +auto ${i} +iface ${i} inet ${method} EOF @@ -132,11 +132,11 @@ fi #then # for i in eth0 eth1 eth2 ath0 wlan0 # do -# grep -q "iface $i" $IFFILE && continue +# grep -q "iface ${i}" ${IFFILE} && continue # -#cat >> "$IFFILE" << EOF -#auto $i -#iface $i inet dhcp +#cat >> "${IFFILE}" << EOF +#auto ${i} +#iface ${i} inet dhcp # #EOF #