3 # H3600 Sleeve hotplug policy agent for Linux 2.4 kernels
5 # Kernel NET hotplug params include:
7 # ACTION=%s [add or remove]
12 . /etc/hotplug/hotplug.functions
13 #DEBUG=yes export DEBUG
15 echo "Executing $0 action=$ACTION, media=$MEDIA ($SLOT)" > /dev/console
17 MMC_MOUNT_OPTIONS="-t auto -o sync,noatime"
19 if [ -f /etc/sysconfig/hotplug ] ; then
20 . /etc/sysconfig/hotplug
32 if [ "$ACTION" = "add" ] ; then
34 echo -n add > /dev/console
36 device=/dev/$devpath$n
37 if [ "$n" = "1" ] ; then
42 [ -b $device ] || break
43 echo " flash on $device" > /dev/console
44 [ -d $card ] || mkdir -p $card
45 mount $MMC_MOUNT_OPTIONS $device $card
49 for card in /mnt/card*; do