changeset 0 | 60bc07f3f415 |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/usr/share/usbmount/usbmount Thu Feb 27 17:12:59 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +# run usbmount asyncron from udev 1.7 +# wait in the subshell until the network comes up and then start the rest 1.8 +( 1.9 + 1.10 +if [ "$1" != "remove" ] 1.11 +then 1.12 + while [ -z "$(ifconfig eth0 | grep "inet addr:")" ] 1.13 + do 1.14 + sleep 0.5 1.15 + done 1.16 +fi 1.17 + 1.18 +/usr/share/usbmount/async_usbmount $1 1.19 +) &