[Linux-decnet-commit] CVS: dnprogs/debian dnet-progs.init.d,1.4,1.5
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Patrick C. <pa...@us...> - 2002-04-17 09:45:10
|
Update of /cvsroot/linux-decnet/dnprogs/debian
In directory usw-pr-cvs1:/tmp/cvs-serv16816
Modified Files:
dnet-progs.init.d
Log Message:
Don't give errors when stopping on a system with no DECnet in the kernel
Index: dnet-progs.init.d
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/debian/dnet-progs.init.d,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** dnet-progs.init.d 21 Oct 2001 14:23:02 -0000 1.4
--- dnet-progs.init.d 17 Apr 2002 09:45:06 -0000 1.5
***************
*** 1,5 ****
#!/bin/sh
#
! # dnet-progs.sh
#
# Starts/stops DECnet processes
--- 1,5 ----
#!/bin/sh
#
! # dnet-progs.sh
#
# Starts/stops DECnet processes
***************
*** 13,24 ****
. /etc/default/decnet
case $1 in
start)
- # Don't issue any messages if DECnet is not configured as
- # dnet-common will have taken care of those.
- if [ ! -f /etc/decnet.conf -o ! -f /proc/net/decnet ]
- then
- exit 1
- fi
echo -n "Starting DECnet daemons:"
--- 13,25 ----
. /etc/default/decnet
+ # Don't issue any messages if DECnet is not configured as
+ # dnet-common will have taken care of those.
+ if [ ! -f /etc/decnet.conf -o ! -f /proc/net/decnet ]
+ then
+ exit 1
+ fi
+
case $1 in
start)
echo -n "Starting DECnet daemons:"
***************
*** 29,33 ****
then
echo -n " $i"
! start-stop-daemon --start --quiet --exec /usr/sbin/$i
fi
done
--- 30,34 ----
then
echo -n " $i"
! start-stop-daemon --start --quiet --exec /usr/sbin/$i
fi
done
|