PKG_NAME:=block-mount
PKG_VERSION:=0.2.0
PKG_NAME:=block-mount
PKG_VERSION:=0.2.0
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
-# Copyright (C) 2009-2010 OpenWrt.org
+# Copyright (C) 2009-2012 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# Copyright (C) 2010 Vertical Communications
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
if [ `basename $blkdev` != "block" ]; then
device=`basename $DEVPATH`
if [ `basename $blkdev` != "block" ]; then
device=`basename $DEVPATH`
+ mountpoint=`sed -ne "s|^[^ ]*/$device ||; T; s/ .*//p" /proc/self/mounts`
;;
remove)
umount /dev/$device
;;
remove)
umount /dev/$device