repo.or.cz
/
arch-rock.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit: Uploaded everything from abs/core
[arch-rock.git]
/
support
/
nfs-utils
/
nfsmount
blob
712b705a5cc0014c0914ea3c4dd76aacd1a25783
1
#!/bin/bash
2
3
.
/
etc
/
rc.conf
4
.
/
etc
/
rc.d
/
functions
5
6
case
"
$1
"
in
7
start
)
8
stat_busy
"Mounting NFS filesystems"
9
if
[ !
-f
/
var
/
run
/
daemons
/
portmap
];
then
10
stat_fail
11
echo
"ERROR: portmap is not running"
12
exit
1
13
fi
14
mount
-a -t
nfs
15
add_daemon nfsmount
16
stat_done
17
;;
18
stop
)
19
stat_busy
"Unmounting NFS filesystems"
20
umount
-a -t
nfs
21
sleep
1
22
if
[ !
-z
`mount -t nfs`
];
then
23
stat_fail
24
exit
1
25
fi
26
rm_daemon nfsmount
27
stat_done
28
;;
29
restart
)
30
$0
stop
31
sleep
2
32
$0
start
33
;;
34
*)
35
echo
"usage:
$0
{start|stop|restart}"
36
esac
37
exit
0