Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Saturday, May 12, 2012

Quick mount/umount dir with shortcuts

First make /usr/bin/mount_htpc:

volume="/home/user/htpc"

if mount|grep $volume; then
umount /home/user/htpc
notify-send "[ ] Umounted /home/user/htpc"
else
mount /home/user/XBMC
notify-send "[X] Mounted /home/user/htpc"
fi


Then create a shortcut to this function! Fast and easy!

No comments:

Post a Comment