xref: /plan9/sys/src/9/bcm/boot.rc (revision 5d9de2d38d2503efca29e12e0e32036368a7a75f)
1#!/boot/rc -m /boot/rcmain
2
3/boot/echo -n boot...
4path=(/bin /boot)
5bind '#p' /proc
6bind '#d' /fd
7bind -a '#P' /dev
8bind -a '#t' /dev
9bind -a '#S' /dev
10bind -a '#I' /net
11echo -n rpi >/dev/hostowner
12echo -n fdisk...
13fdisk -p /dev/sdM0/data >/dev/sdM0/ctl
14dossrv -f/dev/sdM0/dos boot
15rootdir=/root/plan9
16rootspec=''
17mount -c /srv/boot /root
18bind -ac $rootdir /
19bind -ac $rootdir/mnt /mnt
20
21bind /$cputype/bin /bin
22bind -a /rc/bin /bin
23
24if (! ~ $#init 0)
25	exec `{echo $init}
26if (~ $service cpu)
27	exec /$cputype/init -c
28if not
29	exec /$cputype/init -t
30exec /boot/rc -m/boot/rcmain -i
31