#!/bin/sh ## Set the following variablesserver="server.school.edu" # Enter IP or FQDN of netboot server sharepoint="NetBootSP0" # Won't need to change in most cases setName="DeployStudioRuntime-intel.nbi" # Enter netboot set name for Intel machinesppcSetName="DeployStudioRuntime-ppc.nbi" # Enter PPC netboot set name - typically Tiger or LeopardimageName="DeployStudioRuntime.sparseimage" # Enter image name, if using DeployStudio, no need to changeprotocol="nfs" # Enter protocol, nfs or httpsimple="false" -- If set to true, will boot from default netboot imagenextboot="--nextonly"## You shouln't need to change anything belowif [ $simple == true ]; thenif [ "`arch`" == "ppc" ]; then/usr/sbin/nvram boot-device="enet:${server}" boot-args="" boot-file=""else/usr/sbin/bless --netboot --server "bsdp://${server}" $nextbootfielseif [ "`arch`" == "ppc" ]; then/usr/sbin/nvram boot-args="rp=${protocol}:${server}:/private/tftpboot/NetBoot/${sharepoint}:${ppcSetName}/${imageName}" boot-file="enet:${server},NetBoot//${sharepoint}//${ppcSetName}//ppc//mach.macosx" boot-device="enet:${server},NetBoot//${sharepoint}//${ppcSetName}//ppc//booter"else/usr/sbin/bless --netboot --booter "tftp://${server}/NetBoot/${sharepoint}/${setName}/i386/booter" --kernel "tftp://${server}/NetBoot/${sharepoint}/${setName}/i386/mach.macosx" --options "rp=${protocol}:${server}:/private/tftpboot/NetBoot/${sharepoint}:${setName}/${imageName}" $nextbootfifi