echo "Author: Prasanna Kumar.T.S.M"
echo "License: GNU GPL v2 or higher"
echo "TODO: Check whether gnome-mount is installed or not and print a message when it is not installed"
vols=$(cat /proc/partitions | grep sda[1-9] | tr -s ' ' | cut -d ' ' -f5)
echo "Found: "$vols
echo ""
for i in $vols
do
mount | grep $i
if [ $? -eq 0 ]
then
echo "Not mounting: "$i"(as "$i" is already mounted on "`mount | grep $i | tr -s ' ' | cut -d ' ' -f3`")"
else
gnome-mount --device /dev/$i
fi
done
echo ""
exit 0
| Next > |
|---|




