#!/bin/bash Mainmenu () { dialog --title "MOUNT/UNMOUNT DISKS" \ --menu "Selection:" 12 65 4 \ "U" "Unmount a disk" \ "M" "Mount a disk" \ "L" "List mounted disks" \ "Q" "Quit" 2> $HOME/.tmpchoice.mount mountchoice="`cat $HOME/.tmpchoice.mount`" rm -f $HOME/.tmpchoice.mount } #Function call to the above function Mainmenu #Function call to the above function