#!/bin/bash
#
# vlsmbmnt
#
# a front end to xsmb.sh written By Uelsk8s for VLocity Linux

choice=go

while [ "$choice" != "quit" ]; do  
choice="$(eval "zenity --title='mount or unmount?' --text 'This program will help you mount your samba shares 
when asked for a password use your samba users password
you may need to open ports or turn off your firewall' --list --column Choice --column Description Mount/Unmount 'mount or unmount a share' Rescan 'rescan the network' quit 'quit this program'")"

  if [ "$choice" == "Mount/Unmount" ]; then
    /sbin/xsmb.sh
  elif [ "$choice" == "Rescan" ]; then
    /sbin/xsmb.sh -r
  fi
done
