usr/share/usbmount/usbmount
author ft
Tue, 04 Nov 2014 14:58:00 +0100
changeset 2 ee0797f46473
permissions -rwxr-xr-x
changed some things
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
) &