http://quirk.ch/2010/01/how-to-set-up-mdev-rules-for-busybox
https://www.kernel.org/doc/pending/hotplug.txt
/etc/mdev.conf
sd[a-z]*[0-9] 0:0 0660 *(/etc/mdev/mount_usb.sh $ACTION $MDEV)
mount_usb.sh:
#!/bin/bash
ACTION=$1
MDEV=$2
env |logger
if [[ $# -ne 2 ]]; then
logger "mount_usb.sh, param error"
exit -1
fi
logger "got $ACTION, $MDEV"
if [[ $ACTION = "add" ]]; then
mkdir -p /mnt/udisk_$MDEV
mount /dev/$MDEV /mnt/udisk_$MDEV
elif [[ $ACTION = "remove" ]]; then
umount /mnt/udisk_$MDEV
rmdir /mnt/udisk_$MDEV
else
logger "unknown action:$ACTION"
fi