aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/psion.in3
-rw-r--r--plpnfsd/mp_main.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/etc/psion.in b/etc/psion.in
index 0cabf11..29d23eb 100755
--- a/etc/psion.in
+++ b/etc/psion.in
@@ -23,7 +23,8 @@ case "$1" in
;;
stop)
echo -n "Shutting down Psion support: "
- killproc plpnfsd
+ killproc plpnfsd -HUP
+ sleep 10 # allow plpnfsd flushing it's cache
killproc ncpd
echo
rm -f /var/lock/subsys/psion
diff --git a/plpnfsd/mp_main.c b/plpnfsd/mp_main.c
index e6eb067..d9fcaf7 100644
--- a/plpnfsd/mp_main.c
+++ b/plpnfsd/mp_main.c
@@ -131,8 +131,9 @@ mp_main(int verbose, char *dir, char *user)
gettimeofday(&tv, &tz);
- printf("plpnfsd: version %s, mounting on %s\n", VERSION, dir);
debug = verbose;
+ if (debug)
+ printf("plpnfsd: version %s, mounting on %s\n", VERSION, dir);
/* Check if mountdir is empty (or else you can overmount e.g /etc)
It is done here, because exit hangs, if hardware flowcontrol is