installing console-common uninstalls cryptsetup
[fai-configs.git] / files / etc / rc2.d / S99fai-setup / FAISERVER
CommitLineData
2d1f8014 1#! /bin/bash
2
3# setup script that is only run once at boot time
4
5echo "Creating the nfsroot for FAI."
6
7. /etc/fai/fai.conf
8. /etc/fai/make-fai-nfsroot.conf
9
10if [ ! -d "$FAI_CONFIGDIR/class" ]; then
11 mkdir -p $FAI_CONFIGDIR
12 cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
13fi
14
15# setup network
16dhclient eth0 # connection to the outside world (hopefully)
17ip addr add 192.168.1.250 dev eth0 # (fixed address of faiserver)
18/etc/init.d/nscd restart
19/etc/init.d/apache2 restart
20
21fai-setup -v 2>&1 | tee /var/log/fai-setup.log
22
23# create default pxelinux boot configuration (boot from local disk)
24fai-chboot -o default
25
26echo "Log files are saved to /var/log/fai-setup.log"
27
28# remove me
29rm $0