Xshutdown widgit version 1.0
by MJ Wyer

This is a perl program to install one or two Tk buttons
in xdm. One for shutdown, the other for reboot.
It can be used to uninstall the buttons, and also to
tell you which buttons are already installed.

Note: Any user may use this program to query the status,
      but only root can install or uninstall buttons.

Requirements:
    perl (should work on most versions, tested on perl 5)
    wish (WIndowing SHell- part of Tcl/Tk)
    xdm  (xshut assumes the path is /etc/X11/xdm
          you may have to symlink /usr/X11/lib/X11/xdm
          to /etc/X11/xdm)

Command:         |  Result
=================|=======================================
    xshut        |  Tells you whether or not the buttons
                 |  are installed, and if so, which ones.
                 |
    xshut -h     |  Prints out help.
                 |
    xshut -r     |  Installs Reboot button.
                 |
    xshut -s     |  Installs Shutdown button.
                 |
    xshut -u     |  Uninstalls both buttons.
=========================================================

There is also a -v (verbose) option, which increases the level
of information provided. Currently, this only works when
checking status, ie xshut -v will tell you which files it is
checking, etc. The other modes will get verbose options soon.

examples:
[root@snowy Xshutdown]# xshut -v
	Found /etc/X11/xdm/Xshutdown
	Found Reboot button
	Found /etc/X11/xdm/Xshutup
	Found Xshutdown call
	Found Xshutup call
	Reboot
[root@snowy Xshutdown]# xshut -u
	Uninstalling
[root@snowy Xshutdown]# xshut
	Xshutdown not installed
[root@snowy Xshutdown]# xshut -r -s
[root@snowy Xshutdown]# xshut -v
	Found /etc/X11/xdm/Xshutdown
	Found Reboot button
	Found Stop/Halt button
	Found /etc/X11/xdm/Xshutup
	Found Xshutdown call
	Found Xshutup call
	Shutdown and Reboot
[root@snowy Xshutdown]# xshut -u
	Uninstalling
[root@snowy Xshutdown]# xshut -r
[root@snowy Xshutdown]# xshut
	Reboot
