#!/bin/rc
# cpu-specific startup
auth/aescbc -dn </adm/factotum.host | read -m >/mnt/factotum/ctl
# WiFi on
if(~ $#essid 1) {
bind -a '#l1' /net && {
ip/ipconfig ether /net/ether0 unbind
aux/wpa -2 -s $essid /net/ether1
ip/ipconfig ether /net/ether1
#ip/ipconfig ether /net/ether0
}
}
if not {
ip/ipconfig
}
# enable IPv6
#ip/ipconfig -6
#ip/ipconfig ra6 recvra 1
#ip/ipconfig loopback /dev/null ::1
/usr/pi/bin/rc/ipbootsrv || status=''
|