#!/bin/bash

env-update
source /etc/profile

cat > /etc/conf.d/net << EOF
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
iface_eth0="dhcp"
#iface_eth1="dhcp"
#alias_eth0="192.168.0.3 192.168.0.4"
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
#gateway="eth0/192.168.0.1"
EOF

echo "hackbox" > /etc/hostname
echo "hackbox.org" > /etc/dnsdomainname
sed -i -e 's/localhost/localhost hackbox/' /etc/hosts


echo "[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion" >> /etc/skel/.bashrc
cp /etc/skel/.bash* /root/


if ! test -a /etc/runlevels/default/sshd;
        then
                ln -s /etc/init.d/sshd /etc/runlevels/default/sshd
fi


