set CacheNever="ON" set CacheAlways="OFF" set NAME="$BOOTP-Host-Name" set ADDR="$BOOTP-Your-IP" set NFS= "$BOOTP-Server-IP" set GATE="$BOOTP-Routers" set MASK="$BOOTP-Subnet-Mask" set ID= "${BOOTP-Option-133}" set KERNEL="${BOOTP-Option-134}.vmlinuz" set NAME="kiosk$ID" set INIT = "root=/dev/ram init=/rd/bin/init0" set IP = "ip=${ADDR}:${NFS}:${GATE}:${MASK}:${NAME}::" set ARGS = "$INIT $IP SERVER=$NFS GATEWAY=$GATE ID=$ID nomodules nousb" set TIMEOUT="5" ShowLog Clear TextAttr green black print " NAME $NAME ($ID)\r\n" print " KERNEL $KERNEL\r\n" print " ADDR $ADDR\r\n" print " NFS $NFS\r\n" print " GATE $GATE\r\n" print " MASK $MASK\r\n" print "\r\n" goto PROMPT :MENU set TIMEOUT="30" TextAttr green black print "Kiosk${ID} Boot Options:\r\n" print "\r\n" print " 1: Linux\r\n" print " 2: Single User\r\n" print " 3: Memory Test\r\n" print " 4: Interactive\r\n" print "\r\n" :PROMPT TextAttr green black DrawGIF "dnalogo.gif" 400 0 print "Boot: " TextAttr white black WaitForKey $TIMEOUT goto DEFAULT GetKey KEY print "$KEY\r\n" if "$KEY" == "\r" goto DEFAULT if "$KEY" == "\n" goto DEFAULT if "$KEY" == "" goto DEFAULT if "$KEY" == "1" goto LINUX if "$KEY" == "2" goto SINGLE if "$KEY" == "3" goto TEST if "$KEY" == "4" goto INT goto MENU :DEFAULT print "Timed out!\r\n" goto LINUX :LINUX print "Booting Linux...\r\n" set trace="ON" linuxboot "$KERNEL" "$ARGS" "kiosk.rd" goto MENU :SINGLE print "Booting Single User...\r\n" set trace="ON" linuxboot "$KERNEL" "$ARGS" "busybox.rd" goto MENU :TEST print "Booting Memory Tester...\r\n" set trace="ON" loadramdisk "memtest" floppyboot goto MENU :INT print "Entering Interactive Mode...\r\n" interact goto MENU