nfs: fixed statd run mode.

This commit is contained in:
Ricardo Martins 2015-09-09 16:10:04 +01:00
parent cf11934132
commit 466a53c1f3
2 changed files with 28 additions and 5 deletions

View File

@ -23,6 +23,16 @@ requires=\
'libtirpc/default'
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches/$version"/*.patch)
cd ../nfs-utils-$version
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
"../nfs-utils-$version/configure" \
@ -52,5 +62,6 @@ target_install()
$cmd_target_strip -v "utils/mountd/mountd" -o "$cfg_dir_rootfs/usr/bin/rpc.mountd" &&
$cmd_target_strip -v "utils/nfsd/nfsd" -o "$cfg_dir_rootfs/usr/bin/rpc.nfsd" &&
$cmd_target_strip -v "utils/statd/statd" -o "$cfg_dir_rootfs/usr/bin/rpc.statd" &&
$cmd_target_strip -v "utils/statd/sm-notify" -o "$cfg_dir_rootfs/usr/sbin/sm-notify" &&
touch "$cfg_dir_rootfs/etc/exports"
}

View File

@ -0,0 +1,12 @@
diff -Nru nfs-utils-1.3.2/utils/statd/statd.c nfs-utils-1.3.2.rasm/utils/statd/statd.c
--- nfs-utils-1.3.2/utils/statd/statd.c 2015-01-30 20:42:15.000000000 +0000
+++ nfs-utils-1.3.2.rasm/utils/statd/statd.c 2015-09-09 16:06:03.761780966 +0100
@@ -393,7 +393,7 @@
simulator (--argc, ++argv); /* simulator() does exit() */
#endif
- daemon_init(!(run_mode & MODE_NODAEMON));
+ daemon_init((run_mode & MODE_NODAEMON));
if (run_mode & MODE_LOG_STDERR) {
xlog_syslog(0);