#!/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 # ndb/dns -s # ip/dhcpd # ip/tftpd # end initial options: following are pasted in mostly from termrc # bind all likely devices (#S was bound in boot) for(i in f t m v L P U '$' Σ κ) /bin/bind -a '#'^$i /dev >/dev/null >[2=1] # If your site provides DHCP service, # if(! test -e /net/ipifc/0/ctl) ip/ipconfig # # Otherwise, see /cfg/$sysname/termrc (/cfg/example/termrc is an example). # start dns if we have an internet if(test -e /net/ipifc/0/ctl && ! test -e /srv/dns) ndb/dns -r # add the loop-back device if(grep -s loopback /dev/drivers) ip/ipconfig loopback /dev/null 127.1 # If you are on an auth server, start these before listening: # auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1] auth/cron >>/sys/log/cron >[2=1] & # # also rename some files: # if(! test -e /rc/bin/service.auth/tcp567){ mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566 mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567 mv /rc/bin/service/il566 /rc/bin/service/_il566 mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567 }