Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/misc/cpurc

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


#!/bin/rc
# cpu-specific startup

# Since booting from venti could have started loopback,
# don't test for existing interfaces, just use ipconfig.
# ip/ipconfig -g your-gateway ether /net/ether0 your-ip-address your-subnet-mask

# ip/dhcpd
# ip/tftpd

dmaon
ip/ipconfig
ndb/dns -s

# auth server
auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
auth/cron >>/sys/log/cron >[2=1] &
auth/secstored
auth/secstore -n -G factotum | read -m >>/mnt/factotum/ctl

# auth-aware listener: replaces global cpurc's plain aux/listen -q tcp
aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp
sleep 3

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.