3 # setup script that is only run once at boot time
5 echo "Creating the nfsroot for FAI."
9 if [ ! -d "$FAI_CONFIGDIR/class" ]; then
10 mkdir -p $FAI_CONFIGDIR
11 cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
15 dhclient eth0 # connection to the outside world (hopefully)
16 ifconfig eth0:1 192.168.1.250 # (fixed address of faiserver)
17 /etc/init.d/nscd restart
18 /etc/init.d/apache2 restart
19 /etc/init.d/apt-proxy restart
21 fai-setup -v 2>&1 | tee /var/log/fai-setup.log
23 # create default pxelinux boot configuration (boot from local disk)
26 echo "Log files are saved to /var/log/fai-setup.log"