echo -n "new hostname: " read hostname sudo hostname $hostname echo "address of leftmost socket eth0 (for control box):" ifconfig | grep eth0 echo " " echo "address of rightmost socket (for bare apu):" ifconfig | grep eth3 echo " " echo "register $hostname to packet fence and connect LAN to corresponding socket"