1 #!/bin/sh
2
3 # run usbmount asyncron from udev
4 # wait in the subshell until the network comes up and then start the rest
5 (
6
7 if [ "$1" != "remove" ]
8 then
9 while [ -z "$(ifconfig eth0 | grep "inet addr:")" ]
10 do
11 sleep 0.5
12 done
13 fi
14
15 /usr/share/usbmount/async_usbmount $1
16 ) &