* More failure tolerance.
svn path=/nixos/trunk/; revision=8303
This commit is contained in:
parent
b670a6d3d8
commit
1ca3258c3f
|
@ -21,7 +21,7 @@ start on hardware-scan
|
||||||
stop on shutdown
|
stop on shutdown
|
||||||
|
|
||||||
start script
|
start script
|
||||||
${modprobe}/sbin/modprobe af_packet
|
${modprobe}/sbin/modprobe af_packet || true
|
||||||
|
|
||||||
for i in $(cd /sys/class/net && ls -d *); do
|
for i in $(cd /sys/class/net && ls -d *); do
|
||||||
echo \"Bringing up network device $i...\"
|
echo \"Bringing up network device $i...\"
|
||||||
|
@ -44,11 +44,11 @@ start script
|
||||||
|
|
||||||
# Set wireless networking stuff.
|
# Set wireless networking stuff.
|
||||||
if test \"$essid\" != dhcp; then
|
if test \"$essid\" != dhcp; then
|
||||||
${wirelesstools}/sbin/iwconfig \"$name\" essid \"$essid\"
|
${wirelesstools}/sbin/iwconfig \"$name\" essid \"$essid\" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test \"$wepKey\" != nokey; then
|
if test \"$wepKey\" != nokey; then
|
||||||
${wirelesstools}/sbin/iwconfig \"$name\" key \"$(cat \"$wepKey\")\"
|
${wirelesstools}/sbin/iwconfig \"$name\" key \"$(cat \"$wepKey\")\" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set IP address / netmask.
|
# Set IP address / netmask.
|
||||||
|
|
Loading…
Reference in New Issue