Script to mount/unmount drive


#!/bin/bash

DRIVE="/media/tera"

if mount | grep -q $DRIVE; then
umount $DRIVE
else
mount $DRIVE
fi

Arch Linux Forums / Post your handy self made command line utilities

Author: WladyX on 21 April, 2009
Category: Scripts

Leave a Reply

Last articles