#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. if [ -f /etc/redhat-release ]; then R=$(cat /etc/redhat-release) arch=$(uname -m) a="a" case "_$arch" in _a*) a="an";; _i*) a="an";; esac NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` if [ "$NUMPROC" -gt "1" ]; then SMP="$NUMPROC-processor " if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then a="an" else a="a" fi fi # This will overwrite /etc/issue at every boot. So, make any changes you # want to make to /etc/issue here or you will lose them when you reboot. echo "" > /etc/issue echo "$R" >> /etc/issue echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue cp -f /etc/issue /etc/issue.net echo >> /etc/issue fi ################################################################################ # Configure the outside adapter as 10baseT, not 100baseTx # (by default this is eth0) # mii-diag -F 10baseT # Add the route for dhcp broadcasts to the internal net. route add -host dhcp dev eth1 # Add the routes for ip aliases... route add -host GoldenEmpires dev eth0 route add -host OneOddSock dev eth0 route add -host TicketGame dev eth0 ################################################################################ # Add filtering rules... /etc/rc.d/filter ################################################################################ # Do source NAT, from the internal network to the outside world. /etc/rc.d/postNAT /etc/rc.d/preNAT /etc/rc.d/outputNAT ################################################################################ # Set up ip forwarding echo "1" > /proc/sys/net/ipv4/ip_forward