[PLUG] Writing a script for use with LTSP...
robinsoq
robinsoq at mail.opusnet.com
Sat Jul 19 13:30:03 UTC 2003
I've switched to dhcp 3 to get booting with PXE
enabled cards to work. Presto. Trouble is,
the old bootp menu scheme I had with the whole
option-128, etc. under dhcp 2 doesn't work in
release 3 :-( Figuring I have a Linux terminal
boot anyways I've come up with the idea of
using this system to select which system to
boot at startup. To that end I've programmed
cron to reset links for all my terminals to the
LTSP boot image every twenty images assuming
those links could point to say a dos image or
something else.
The reasoning for using the LTSP
system to choose the boot image is twofold:
You have to authenticate through Linux login
which is going to be familiar territory and
is also security conscious, I don't have to
do weird things with the dhcp configuration
other than restart dhcp every time there is
a link change for a boot option.
So far I'm stumped: my current bash script is at
ftp://ftp.robinson-west.com/linux/net-image.bash.
My script need this in short:
1) Who is executing me to
determine their boot
options.
2) From which terminal am
I being called to choose
the right link to modify.
3) The ability to perform the
root task of changing the
boot link for an ordinary
user without that user
entering the root password.
4) An init script to call
that will restart
dhcp after the links
are redone.
*) Admin is special and can
change any terminals'
boot option to any boot
image including
installation images.
I'm guessing this script needs
suid bits?
In a test I manually changed a
terminal's link and restarted
dhcp which did change it's boot.
Twenty minutes later simply
restarting dhcp thanks to my
current root owned cron job
that resets all links I put
that terminal back to LTSP.
More information about the PLUG
mailing list