Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/dist/replica/cd – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
 
3
s=/n/dist/dist/replica
4
serverroot=/n/dist
5
serverlog=$s/plan9.log
6
serverproto=$s/plan9.proto
7
fn servermount { status='' } 
8
fn serverupdate { status='' }
9
 
10
if ( ! test -e /srv/boot && ! test -e /srv/kfs ) {
11
	echo 'error: neither /srv/boot nor /srv/kfs present; make sure you are running on the file server'
12
	exit '/srv/boot or /srv/kfs not present'
13
}
14
 
15
if (test -e /srv/fscons) {
16
	if ( ! test -w /srv/fscons ) { 
17
		echo 'error: no write access to /srv/fscons, make sure you are the host owner' 
18
		exit 'no write access to /srv/fscons'
19
	}
20
 
21
	fn clientmount { echo 'srv -AWP replica'>>/srv/fscons;  mount -c /srv/replica /n/boot }
22
	c=/n/boot/dist/replica
23
	clientroot=/n/boot
24
}
25
if not {
26
	fn clientmount { 9fs kfs }
27
	c=/n/kfs/dist/replica
28
	clientroot=/n/kfs
29
}
30
 
31
clientdb=$c/client/plan9.db
32
clientexclude=(dist/replica/client)
33
clientlog=$c/client/plan9.log
34
clientproto=$c/plan9.proto
35
 
36
applyopt=(-u -T$c/client/plan9.time)