diff options
| author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-19 14:16:11 +0200 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-26 17:22:17 +0200 |
| commit | 053558bc5cd1944a6ac271cbccd9514a116e00f2 (patch) | |
| tree | ddb381ed8dfe51d2390e42ddadab61d1ee9fa4fd /package | |
| parent | 883ee0df764eea2770e972be34fe1188cd1da267 (diff) | |
nfs-utils: finetuning startup script
Diffstat (limited to 'package')
| -rw-r--r-- | package/base-files/Makefile | 2 | ||||
| -rw-r--r-- | package/nfs-utils/Makefile | 1 | ||||
| -rw-r--r-- | package/nfs-utils/files/nfsd.init | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 0ae4f795b..bc8efca2f 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -178,8 +178,10 @@ endif endif printf "\n" >> ${IDIR_BASE_FILES}/etc/network/interfaces +ifneq (${ADK_SIMPLE_NETWORK_CONFIG_NS},) rm ${IDIR_BASE_FILES}/etc/resolv.conf printf "nameserver ${ADK_SIMPLE_NETWORK_CONFIG_NS}\n" > ${IDIR_BASE_FILES}/etc/resolv.conf +endif ifneq (${ADK_SIMPLE_NETWORK_CONFIG_PROXY},) printf "http_proxy=${ADK_SIMPLE_NETWORK_CONFIG_PROXY}\n" >> ${IDIR_BASE_FILES}/etc/profile printf "https_proxy=${ADK_SIMPLE_NETWORK_CONFIG_PROXY}\n" >> ${IDIR_BASE_FILES}/etc/profile diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile index faec335c7..339ace1e9 100644 --- a/package/nfs-utils/Makefile +++ b/package/nfs-utils/Makefile @@ -23,6 +23,7 @@ PKGSD_NFS_UTILS_CLIENT:=client utilities PKGSN_NFS_UTILS_CLIENT:=nfs-utils PKGSD_NFS_UTILS_SERVER:=server daemons and utilities PKGSN_NFS_UTILS_SERVER:=nfs-utils +PKGSK_NFS_UTILS_SERVER:=nfsd PKG_CHOICES_NFS_UTILS:= V3 V4 PKGCD_V3:= nfs version 3 diff --git a/package/nfs-utils/files/nfsd.init b/package/nfs-utils/files/nfsd.init index 2699b9dc3..21b1a495b 100644 --- a/package/nfs-utils/files/nfsd.init +++ b/package/nfs-utils/files/nfsd.init @@ -17,6 +17,7 @@ start) touch /var/lib/nfs/etab touch /var/lib/nfs/xtab touch /var/lib/nfs/sm + mount -t nfsd nfsd /proc/fs/nfsd chown nfs:nfs /var/lib/nfs/sm /usr/sbin/nfsd 4 /usr/sbin/mountd @@ -30,6 +31,7 @@ start) ;; stop) kill $(pgrep -f /usr/sbin/mountd) + umount /proc/fs/nfsd if [ ${nfs_server_version} -eq 4 ];then kill $(pgrep -f /usr/sbin/idmapd) kill $(pgrep -f /usr/sbin/svcgssd) |
