Inspired by your cute reboot/halt button hack, I added it plus a
little background color to my own xdm.  Everyone here is pretty happy
with the result.

                                        --BAP.

Added to the bottom of /etc/X11/xdm/Xsetup_0

  # reboot button
  /usr/bin/wish <<EOF &
  wm geometry . +0-0
  button .halt   -text Halt   -command {exec shutdown -h now}
  button .reboot -text Reboot -command {exec shutdown -r now}
  pack .halt .reboot -side left
  EOF
  echo $! > /var/run/xdmbutton_0.pid
  
  # background
  /usr/bin/X11/xlock -inroot -delay 50000 -mode bouboule &
  echo $! > /var/run/xdmlock_0.pid

Added to the bottom of /etc/X11/xdm/Xstartup_0

  # reboot button
  if test -r /var/run/xdmbutton_0.pid; then
    kill `cat /var/run/xdmbutton_0.pid`
    rm /var/run/xdmbutton_0.pid
  fi
  
  # background
  if test -r /var/run/xdmlock_0.pid; then
    kill `cat /var/run/xdmlock_0.pid`
    rm  /var/run/xdmlock_0.pid
  fi


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to