#!/bin/bash

choice=go

while [ "$choice" != "quit" ]; do  
choice="$(eval "zenity --title='mount or unmount?' --text 'This program will help you mount your samba shares' --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
