boot_tiny/reg

11 lines
359 B
Plaintext

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