1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Apply Debian initscript patch from David Paleino.

This commit is contained in:
Dan O'Reilly
2009-03-15 20:54:16 -04:00
parent 7a8f798138
commit 518e0ec358
3 changed files with 6 additions and 3 deletions

View File

@@ -18,14 +18,18 @@
PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="Network connection manager"
NAME=wicd
RUNDIR=/var/run/$NAME
DAEMON=%SBIN%$NAME
DAEMON_ARGS=""
PIDFILE=%PIDFILE%
PIDFILE=$RUNDIR/wicd.pid
SCRIPTNAME=%INIT%%INITFILENAME%
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Create RUNDIR if it doesn't exist
[ -d "$RUNDIR" ] || mkdir -p "$RUNDIR"
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

View File

@@ -8,7 +8,7 @@
#
# processname: wicd
# config:
# pidfile: /var/run/wicd.pid
# pidfile: %PIDFILE%
#
# $Id: template.init 9689 2008-03-27 16:15:39Z patrys $

View File

@@ -441,7 +441,6 @@ try:
piddir = os.path.dirname(wpath.pidfile)
if not piddir.endswith('/'):
piddir += '/'
data.append (( piddir, [] ))
if not wpath.no_install_docs:
data.append((wpath.docdir, ['INSTALL', 'LICENSE', 'AUTHORS',
'README', 'CHANGES', ]))