summaryrefslogtreecommitdiffstats
path: root/abs/core/udev/mount-usb
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/core/udev/mount-usb
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/core/udev/mount-usb')
-rw-r--r--abs/core/udev/mount-usb51
1 files changed, 0 insertions, 51 deletions
diff --git a/abs/core/udev/mount-usb b/abs/core/udev/mount-usb
deleted file mode 100644
index 2d3b3f5..0000000
--- a/abs/core/udev/mount-usb
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-
-DIR=/media
-DEVICE=$2
-LABEL=`/lib/udev/vol_id -L /dev/$DEVICE`
-FS=`/lib/udev/vol_id -t /dev/$DEVICE`
-
-
-mount_device () {
- if [ "$LABEL" == "" ];
- then
- mkdir -p $DIR/usb-$DEVICE
- case $FS in
- vfat) /bin/mount -t vfat -o rw,noauto,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111 /dev/$DEVICE $DIR/usb-$DEVICE
- ;;
- *) /bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/$DEVICE $DIR/usb-$DEVICE
- ;;
- esac
- else
- mkdir -p $DIR/$LABEL
- echo $LABEL >$DIR/.$DEVICE
- case $FS in
- vfat) /bin/mount -t vfat -o rw,noauto,flush,quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111 /dev/$DEVICE $DIR/$LABEL
- ;;
- *) /bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/$DEVICE $DIR/$LABEL
- ;;
- esac
- fi
-}
-
-umount_device () {
- if [ -e $DIR/usb-$DEVICE ];
- then
- umount -l $DIR/usb-$DEVICE
- rmdir $DIR/usb-$DEVICE;
- else
- ULABEL=`cat $DIR/.$DEVICE`
- umount -l $DIR/$ULABEL
- rmdir $DIR/$ULABEL
- rm $DIR/.$DEVICE;
- fi
-}
-
-case $1 in
- mount) mount_device
- ;;
- umount) umount_device
- ;;
- *) echo "Usage: mount-usb mount/umount sdxY"
-esac