diff options
Diffstat (limited to 'da_DK.ISO8859-1/articles/pxe/post')
-rw-r--r-- | da_DK.ISO8859-1/articles/pxe/post | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/da_DK.ISO8859-1/articles/pxe/post b/da_DK.ISO8859-1/articles/pxe/post new file mode 100644 index 0000000000..9437b5c8c0 --- /dev/null +++ b/da_DK.ISO8859-1/articles/pxe/post @@ -0,0 +1,36 @@ +#!/bin/sh + +# $Wintelcom: src/freebsd/pxe/doc/post,v 1.1 2000/07/14 12:42:05 bright Exp $ +# $FreeBSD$ + +echo post-install + +set PATH=/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/bin:/usr/bin/X11 +export PATH + +# do timezone +cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime + +conf="/etc/rc.conf.local" + +rm $conf + +echo 'sendmail_enable="NO"' >> $conf +echo 'dumpdev="/dev/ad0s1b"' >> $conf +echo 'sshd_enable="YES"' >> $conf +echo 'linux_enable="YES"' >> $conf + +# Ops�tning af IP adresse og hostnavn +if=`ifconfig fxp1 inet | grep '[ ]*inet' | sed 's/[ ]*//'` +echo "ifconfig_fxp1=\"${if}\"" >> $conf +name=`echo $if | sed 's/[ ][ ]*/ /g' | cut -f2 -d" " | cut -f4 -d.` +echo "hostname=\"suyy${name}\"" >> $conf + +echo "network_interfaces=\"fxp0 fxp1 lo0\"" >> $conf + +# Ops�tning af gateway, overs�t netstat output +gw=`netstat -rn | grep '^default' | sed 's/[ ][ ]*/ /g' | cut -f2 -d" "` +echo "defaultrouter=\"${gw}\"" >> $conf + +pwd_mkdb -p /etc/master.passwd +exit 0 |