usr/share/usbmount/usbmount
author ft
Thu, 27 Feb 2014 17:12:59 +0100
changeset 0 60bc07f3f415
permissions -rwxr-xr-x
initial commit
ft@0
     1
#!/bin/sh
ft@0
     2
ft@0
     3
# run usbmount asyncron from udev
ft@0
     4
# wait in the subshell until the network comes up and then start the rest
ft@0
     5
(
ft@0
     6
ft@0
     7
if [ "$1" != "remove" ]
ft@0
     8
then
ft@0
     9
	while [ -z "$(ifconfig eth0 | grep "inet addr:")" ]
ft@0
    10
	do
ft@0
    11
	        sleep 0.5
ft@0
    12
	done
ft@0
    13
fi
ft@0
    14
ft@0
    15
/usr/share/usbmount/async_usbmount $1
ft@0
    16
) &