summaryrefslogtreecommitdiff
path: root/core/nfs-utils/nfs-utils_env.sh
blob: 42ff93df274ea7d0aed0e921e4b419b4efc69374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# archlinux config files
. /etc/conf.d/nfs-common.conf
. /etc/conf.d/nfs-server.conf
# config file read by systemd files
NFS_UTILS_CONFIG=/run/sysconfig/nfs-utils

[[ -d /run/sysconfig ]] || mkdir /run/sysconfig
[[ -e  $NFS_UTILS_CONFIG ]] && rm -f $NFS_UTILS_CONFIG

# /etc/conf.d/nfs-common
echo "STATDARGS=\"$STATD_OPTS\"" >> $NFS_UTILS_CONFIG
echo "SMNOTIFYARGS=\"$SMNOTIFY_OPTS\"" >> $NFS_UTILS_CONFIG
echo "RPCIDMAPDARGS=\"$IDMAPD_OPTS\"" >> $NFS_UTILS_CONFIG
echo "GSSDARGS=\"$GSSD_OPTS\"" >> $NFS_UTILS_CONFIG

# /etc/conf.d/nfs-server
echo "RPCMOUNTDARGS=\"$MOUNTD_OPTS\"" >> $NFS_UTILS_CONFIG
echo "RPCNFSDARGS=\"$NFSD_OPTS\"" >> $NFS_UTILS_CONFIG
echo "SVCGSSDARGS=\"$SVCGSSD_OPTS\"" >> $NFS_UTILS_CONFIG