usr/share/usbmount/usbmount
author ft
Thu, 27 Feb 2014 17:12:59 +0100
changeset 0 60bc07f3f415
permissions -rwxr-xr-x
initial commit
     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 ) &