mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
58b8cdb5fd
SVN-Revision: 14289
20 lines
287 B
Bash
20 lines
287 B
Bash
#!/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
|