mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-22 15:06:46 +02:00
20 lines
287 B
Plaintext
20 lines
287 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Copyright (C) 2009 OpenWrt.org
|
||
|
|
||
|
blkdev=`dirname $DEVPATH`
|
||
|
if [ `basename $blkdev` != "block" ]; then
|
||
|
|
||
|
device=`basename $DEVPATH`
|
||
|
case "$ACTION" in
|
||
|
add)
|
||
|
mkdir -p /mnt/$device
|
||
|
mount /dev/$device /mnt/$device
|
||
|
;;
|
||
|
remove)
|
||
|
umount /dev/$device
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
fi
|