#!/bin/sh


PROGNAME=${0##*/}
PROGVERSION="5.0"



# --------------------
# Help and Information
# --------------------

# When requested show information about script
if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then
cat << end-of-messageblock

$PROGNAME version $PROGVERSION
A launch script for disconnectshares.sh

Usage: 
   $PROGNAME [options]

Options:
   -h, --help     Show this output

Summary:
   Runs disconnectshares.sh in a terminal window.  The size of the window is chosen
   to match the window size used by disconnectshares.sh.

Requires:
   disconnectshares.sh, sudo, urxvt

end-of-messageblock
   exit 0
fi


# --------
# Launcher
# --------

# switches
#  -geometry    Open an xterm window that matches the size of the dialog boxes
#  +sb          Turn off scrollbar
#  -fn          Use a font size that is easy to read
#  -T           Assign a title to window
#  -e           Run following command in the terminal window
#
urxvt -geometry 70x20 +sb -fn 10x20 -T 'Disconnectshares' -e sudo disconnectshares.sh

exit
 
