blob: 5306337313a8487cab53b3e42c25eb195402f725 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/bash
function brief()
{
echo "--nfs=[<mount>|no]"
}
function help()
{
brief
cat <<EOF
If yes, the given nfs share "<mount>" will be mounted at <mount>
The default is no.
EOF
}
function validate() {
exit 0
}
function configure()
{
if [ "$OPT_NFS_QT" != no ]; then
cat >output/option_files/post_start.opt_nfs <<EOF
echo "---> Starting NFS"
STARTU_P(fs_nfs3_t,__FS_NFS3_ID__) fs-nfs3 172.31.1.1:$OPT_NFS_QT $OPT_NFS_QT
EOF
fi
exit 0
}
case "$1" in
brief)
brief;;
help)
help;;
validate)
validate;;
configure)
configure;;
default)
echo no;;
esac
|