We're not using the latest version, but I thought I'd send this in case it is helpful. It is a master script which lets you select from any of the scripts which are available on the server. We find this helpful on some machines which have many images, because you don't have to re-run addclients.
#!/bin/sh # # "SystemImager" - Copyright (C) 1999-2001 Brian Elliott Finley <[EMAIL PROTECTED]> # # # Special master script that prompts for the image. This is useful in environments with # many images. # # Michael Griffith <[EMAIL PROTECTED]> # Chris McIntosh <[EMAIL PROTECTED]> # VERSION=2.0.1 DEFAULTIMAGENAME=desktop-whitebox3.0.2-x86 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/tmp ARCH=`uname -m \ | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/` TIMEO=30 shellout() { exec cat /etc/issue ; exit 1 } trap "IMAGENAME=$DEFAULTIMAGENAME ; downloadAndRun ; exit 0" 14 downloadAndRun () { trap "echo ' '" 14 rsync -av --numeric-ids $IMAGESERVER::scripts/${IMAGENAME}.master /tmp/ || shellout echo "Now running the real script from /tmp/${IMAGENAME}.master" sh /tmp/${IMAGENAME}.master } # Pull in variables left behind by the linuxrc script. # This information is passed from the linuxrc script on the autoinstall media via /tmp/variables.txt # Apparently the shell on the autoinstall media is not intelligent enough to take a "set -a" parameter . /tmp/variables.txt || shellout # # Setup a timeout mechanism in case this is an unattended install # export THIS_SHELL_PID=$$ ; (sleep $TIMEO ; kill -14 $THIS_SHELL_PID) & # # Prompt for the image # rsync -av --numeric-ids $IMAGESERVER::conf/rsyncd.conf /tmp/ || shellout image_file="/tmp/rsyncd.conf" echo -n "What image to install (?h shows images. Default installs in $TIMEO sec.) [$DEFAULTIMAGENAME]? " #images=`grep "only image entries below" $image_file -A999999999 | grep "" ` images=`grep "\[" $image_file` read input while [ "$input" = "?h" ]; do echo "$images" read input done IMAGENAME=$input if [ ! $IMAGENAME ] ; then IMAGENAME=$DEFAULTIMAGENAME fi downloadAndRun