[udev] mount hdd storage to /media/hdd using udev.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-core / udev / udev-182 / autoumount.sh
diff --git a/meta-openvuplus/recipes-core/udev/udev-182/autoumount.sh b/meta-openvuplus/recipes-core/udev/udev-182/autoumount.sh
deleted file mode 100644 (file)
index a8f26bf..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-get_mount_point() {
-       mount |grep /dev/$1 |cut -d ' ' -f3
-}
-
-DEVICE=$1
-
-if test -z $DEVICE; then
-       exit 1
-fi
-
-MOUNTPOINT="$(get_mount_point $DEVICE)"
-
-if test -n "${MOUNTPOINT}"; then
-       echo "[udev] umount -l ${MOUNTPOINT}"
-       umount -l ${MOUNTPOINT}
-fi
-