Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/root/cfg.home/helix/cpurc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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=''


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.