* More failure tolerance.

svn path=/nixos/trunk/; revision=8303
This commit is contained in:
Eelco Dolstra 2007-03-16 14:46:56 +00:00
parent b670a6d3d8
commit 1ca3258c3f
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ start on hardware-scan
stop on shutdown
start script
${modprobe}/sbin/modprobe af_packet
${modprobe}/sbin/modprobe af_packet || true
for i in $(cd /sys/class/net && ls -d *); do
echo \"Bringing up network device $i...\"
@ -44,11 +44,11 @@ start script
# Set wireless networking stuff.
if test \"$essid\" != dhcp; then
${wirelesstools}/sbin/iwconfig \"$name\" essid \"$essid\"
${wirelesstools}/sbin/iwconfig \"$name\" essid \"$essid\" || true
fi
if test \"$wepKey\" != nokey; then
${wirelesstools}/sbin/iwconfig \"$name\" key \"$(cat \"$wepKey\")\"
${wirelesstools}/sbin/iwconfig \"$name\" key \"$(cat \"$wepKey\")\" || true
fi
# Set IP address / netmask.