blob: 55d852ee78605f4d93557762196db628a415305f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/rc -e
if(! test -d /n/sources/patch){
rfork n
9fs sources
}
rsys=`{ndb/query ipnet plan9 cifs}
if(! test -d /n/$rsys/misc){
if(ip/ping -n 1 '$cifs' >/dev/null){
rfork n
cifs -m /n/$rsys '$cifs'
}
if not{
echo $rsys not available >[1=2]
exit 'destination not available'
}
}
if(! test -d /n/$rsys/misc/9patch)
mkdir /n/$rsys/misc/9patch
echo dircp /n/sources/patch /n/$rsys/misc/9patch
exec dircp /n/sources/patch /n/$rsys/misc/9patch
|