> So, I need to script some kind of a 'Reboot now!' button to go alongside
> the xdm login screen. And it has to be activated by mouse, because xdm
> grabs the keyboard.
Add the following line to /usr/X11/lib/X11/xdm/Xsetup_0:
/usr/local/bin/bootbutton -geometry +240-10 &
And create the file /usr/local/bin/bootbutton:
#!/usr/bin/wish
proc reboot {} {
exec /sbin/shutdown -r now
}
label .l1 -text "This machine is running MkLinux."
pack .l1
label .l2 -text "Click below if you need it to be a Mac."
pack .l2
label .l3 -text "Please use this mac last, only if no other macs are free."
pack .l3
label .l4 -text ""
pack .l4
button .reboot -text "Reboot As A Mac" -command {reboot}
pack .reboot
jonh@cs.dartmouth.edu
For those of you who can't figure out what the heck /usr/bin/wish is,
you need to install tcl, tclx, and tk. (these can be found on the DR2.1 CD
under Archives/rpm, or somewhere on mklinux.apple.com)
troybenj@iastate.edu jonh@cs.dartmouth.edu, troybenj@iastate.edu |