ft@0: #!/bin/sh ft@0: ft@0: # run usbmount asyncron from udev ft@0: # wait in the subshell until the network comes up and then start the rest ft@0: ( ft@0: ft@0: if [ "$1" != "remove" ] ft@0: then ft@0: while [ -z "$(ifconfig eth0 | grep "inet addr:")" ] ft@0: do ft@0: sleep 0.5 ft@0: done ft@0: fi ft@0: ft@0: /usr/share/usbmount/async_usbmount $1 ft@0: ) &