From 03a6f417bd4407c9cb94b70863824c7042cb2ab4 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 15 Dec 2007 16:39:41 +0000 Subject: Add untested plpfuse support to startup scripts. --- etc/psion.SuSE.in | 11 +++++++++++ etc/psion.in | 14 ++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'etc') diff --git a/etc/psion.SuSE.in b/etc/psion.SuSE.in index c41e9ab..b39846e 100755 --- a/etc/psion.SuSE.in +++ b/etc/psion.SuSE.in @@ -13,6 +13,7 @@ . /etc/rc.status [ -f @prefix@/sbin/ncpd ] || exit 0 +[ -f @prefix@/sbin/plpfuse ] || exit 0 [ -f @prefix@/sbin/plpprintd ] || exit 0 [ -f /etc/sysconfig/psion ] || exit 0 . /etc/sysconfig/psion @@ -26,6 +27,11 @@ start() { startproc -f @prefix@/sbin/ncpd $NCPD_ARGS rc_status -v fi + if test "$START_PLPFUSE" = "yes" ; then + echo -n " plpfuse: " + startproc -f @prefix@/sbin/plpfuse $PLPFUSE_ARGS + rc_status -v + fi if [ "$START_PLPPRINTD" = "yes" ] ; then echo -n " plpprintd: " startproc -f @prefix@/sbin/plpprintd $PLPPRINTD_ARGS @@ -41,6 +47,11 @@ stop() { killproc -TERM @prefix@/sbin/plpprintd rc_status -v fi + if [ "$START_PLPFUSE" = "yes" ] ; then + echo -n " plpfuse: " + fusermount -u /mnt/psion + rc_status -v + fi if [ "$START_NCPD" = "yes" ] ; then echo -n " ncpd: " killproc -TERM @prefix@/sbin/ncpd diff --git a/etc/psion.in b/etc/psion.in index 57a5c57..d19378c 100755 --- a/etc/psion.in +++ b/etc/psion.in @@ -9,6 +9,7 @@ . /etc/rc.d/init.d/functions [ -f @prefix@/sbin/ncpd ] || exit 0 +[ -f @prefix@/sbin/plpfuse ] || exit 0 [ -f @prefix@/sbin/plpprintd ] || exit 0 [ -f /etc/sysconfig/psion ] || exit 0 . /etc/sysconfig/psion @@ -22,6 +23,14 @@ start() { RETVAL=$? echo fi + if [ $RETVAL -eq 0 ] ; then + if test "$START_PLPFUSE" = "yes" ; then + echo -n " plpfuse: " + daemon @prefix@/sbin/plpfuse $PLPFUSE_ARGS + RETVAL=$? + echo + fi + fi if [ $RETVAL -eq 0 ] ; then if test "$START_PLPPRINTD" = "yes" ; then echo -n " plpprintd: " @@ -42,6 +51,11 @@ stop() { killproc plpprintd echo fi + if test "$START_PLPFUSE" = "yes" ; then + echo -n " plpfuse: " + fusermount -u /mnt/psion + echo + fi if test "$START_NCPD" = "yes" ; then echo -n " ncpd: " killproc ncpd -- cgit v1.2.3