2009 April 21

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

By WladyX on 21 April, 2009 | Scripts | A comment?