#!/bin/bash

. $script_path/functions.sh

echo "-- $0 --"

cd /etc
echo "127.0.0.1   brana.domanet brana gateway localhost" > /etc/hosts
sed -i -e 's/HOSTNAME.*/HOSTNAME="brana"/' /etc/conf.d/hostname
sed -i -e 's/hostname.*/hostname="brana"/' /etc/conf.d/hostname
hostname brana
hostname -f

cat >>/etc/conf.d/net <<_EOF_

dns_domain_lo="domanet"
nis_domain_lo="domanet"

config_eth0="dhcp"
_EOF_

cd /etc/init.d
ln -s net.lo net.eth0
rc-update add net.eth0 default

done_mark
