[package] base-files: move ipv6 module loading from setup_interface() to addif()...
[openwrt-10.03/.git] / package / base-files / files / etc / hotplug.d / block / 10-mount
1 #!/bin/sh
2
3 # Copyright (C) 2009 OpenWrt.org
4
5 blkdev=`dirname $DEVPATH`
6 if [ `basename $blkdev` != "block" ]; then
7
8     device=`basename $DEVPATH`
9     case "$ACTION" in
10         add)
11                 mkdir -p /mnt/$device
12                 mount /dev/$device /mnt/$device
13                 ;;
14         remove)
15                 umount /dev/$device
16                 ;;
17     esac        
18
19 fi