#!/bin/bash
DRIVE="/media/tera"
if mount | grep -q $DRIVE; then umount $DRIVEelse mount $DRIVEfi
Arch Linux Forums / Post your handy self made command line utilities