#!/bin/sh

# Find the unmounted partitions from /etc/fstab
# This file is part of FVWM-Crystal
#
# Version:	1.0.0
# Licence:	GPL 2
#
# Written by Dominique Michel <dominique_libre@users.sourceforge.net>, 2013
# for Fvwm-Crystal.

cat /etc/fstab|grep user|grep -v \#| awk '{print $2}'|while read line
do  partition=${line}
	exist=0
	while read lines
		do if [ ${partition} = ${lines} ]
			then exist=1
		   fi
	done </tmp/Icon-Drives
	if [ ${exist} = 0 ]
		then echo AddToMenu $1 \"\$[gt.Mount] ${line}\" Exec exec mount ${line}
	fi
done

