(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) X Windows : (Category) xdm :
I need a button that lets the linux-ignorant reboot into MacOS.
>   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
[Append to This Answer]
Previous: (Answer) I tried to make xdm work, and now my system's broken, and I can't get a shell!
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=90
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo