All pastes #986156 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-04-15 16:10 UTC
rendered paste body
[stijn@hermes ~]$ cat .config/openbox/scripts/openbox-mount.sh
#!/bin/sh

# Usage: <menu id="ssh-to" label="$menuname" execute="~/.config/openbox/scripts/openbox-mount.sh $device" />

# Small script to mount/unmount removable devices with a single click
# Prone to errors; eager for testing
# Fstab entries should match the device names or their symlinks used
# (for convenience, if not, you have to adapt the script for each device)

grep $1 /etc/mtab &> /dev/null && umount /media/$1 || mount /media/$1