#!/bin/bash
PATH=$PATH:/usr/local/lib/inx
. inx_essentials
maybe_switch


# Menu to select usb or hard drive option, or sshfs

unbold ; clear 
fig-col
figlet "  File Systems"
head-col
echo -e "\n  Attach and detach file systems."
info-col
echo
echo "  1: Usb Devices"
echo "  2: Hard Drive Partitions"
echo "  3: Network Share Files"
echo "  4: CD and DVD Devices"
echo
head-col
echo "  m: Return to the main inx menu"
echo "  u: Unmount / Detach File Systems."
echo "  x: Give me a command prompt"

show_mounts

f-ttynum

read -s -n 1 DRIVE
    case $DRIVE in
        1)
	exec usb
	;;
	2)
	exec disc
	;;
	3)
	exec sharinx
	;;
	4)
	exec cd-mount
	;;
	m)
	exec menu
	;;
	u)
	echo -e "\n  Choose the type of file system to detach, then follow the menu instructions.\n"
	sleep 4
	f-drivinx
	;;
	x)
	f-prompt
	;;
	*)
	f-drivinx
	;;
    esac
    


