diff options
author | Luis Henrique <lmello.009@gmail.com> | 2010-05-13 01:00:48 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:00:48 +0200 |
commit | 9fa6a79645c5cf5c4caaa4d560872fc375e31d93 (patch) | |
tree | 6d266a0d51ec3c5af05797fb31cb974886f1db18 /system/gigolo/gnome-mount | |
parent | 98831b981e21e886fd804dc65060dbcfe79a5cf6 (diff) | |
download | slackbuilds-9fa6a79645c5cf5c4caaa4d560872fc375e31d93.tar.gz |
system/gigolo: Added to 13.0 repository
Diffstat (limited to 'system/gigolo/gnome-mount')
-rw-r--r-- | system/gigolo/gnome-mount | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/system/gigolo/gnome-mount b/system/gigolo/gnome-mount new file mode 100644 index 0000000000..e3b6323fcd --- /dev/null +++ b/system/gigolo/gnome-mount @@ -0,0 +1,58 @@ +#!/bin/sh +# +# gnome-mount - wrapper script for use with exo-mount +# +# Copyright 2009 Enrico Tröger <enrico(at)xfce(dot)org> +# Licence: GPLv2 +# +# This script aims to be a wrapper script to provide the +# gnome-mount utility on envrionments which only have +# exo-mount (e.g. Xfce). It accepts all command line arguments +# which are passed but ignores all which are not supported by +# exo-mount. +# +# Possible use case is as a drop-in replacement to get mounting +# local resources with GVfs working, e.g. mounting disks in CD drives. + +# Retrieved from http://files.uvena.de/gnome-mount +# (slightly modified to remove extraneous information) + + +OPTS="" + +# first catch all passed arguments and keep those exo-mount supports, +# ignore all other arguments +while [ -n "$*" ] +do + case $1 in + -\?|--help) + OPTS="$OPTS --help" + ;; + -e|--eject) + OPTS="$OPTS --eject" + ;; + -u|--unmount) + OPTS="$OPTS --unmount" + ;; + -h|--hal-udi) + OPTS="$OPTS --hal-udi" + shift + OPTS="$OPTS $1" + ;; + -d|--device) + OPTS="$OPTS --device" + shift + OPTS="$OPTS $1" + ;; + -n|--no-ui) + OPTS="$OPTS --no-ui" + ;; + -V|--version) + OPTS="$OPTS --version" + ;; + esac + shift +done + +# now run exo-mount and hope things go well +exo-mount $OPTS |