head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2009.09.27.13.06.32;	author gabor;	state Exp;
branches;
next	;


desc
@@


1.1
log
@- Add translation of the pxe article

Reviewed by:	Pablo Mora <bidjan@@gmail.com>,
		Guillermo Hernandez <guillermo@@QuerySoft.es>.
		David Barbero <sico@@loquefaltaba.com>
@
text
@#!/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

# set up IP address and hostname
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

# set up gateway, parse 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
@
