Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/ramcfs

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


#!/bin/rc -x
fs=`{cat '#ec/fs'}
ramfs -m /n/cfscache
dd < /dev/zero >/n/cfscache/cache -bs 1048576 -count 512
cfs -a $fs -r -f /n/cfscache/cache /n/cfs
for(i in `{ls /n/cfs}){
	bi=`{basename $i}
	if(! ~ $bi fd mnt n tmp)
		bind -b /n/cfs/$bi /$bi
}
bind -b $home/bin/rc /bin
bind -b $home/bin/$cputype /bin
bind -c $home/go/$cputype/bin $home/go/bin
bind -b $GOPATH/bin /bin
rm /env/bi
rm /env/i

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.