mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Apply Debian initscript patch from David Paleino.
This commit is contained in:
@@ -18,14 +18,18 @@
|
|||||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
DESC="Network connection manager"
|
DESC="Network connection manager"
|
||||||
NAME=wicd
|
NAME=wicd
|
||||||
|
RUNDIR=/var/run/$NAME
|
||||||
DAEMON=%SBIN%$NAME
|
DAEMON=%SBIN%$NAME
|
||||||
DAEMON_ARGS=""
|
DAEMON_ARGS=""
|
||||||
PIDFILE=%PIDFILE%
|
PIDFILE=$RUNDIR/wicd.pid
|
||||||
SCRIPTNAME=%INIT%%INITFILENAME%
|
SCRIPTNAME=%INIT%%INITFILENAME%
|
||||||
|
|
||||||
# Exit if the package is not installed
|
# Exit if the package is not installed
|
||||||
[ -x "$DAEMON" ] || exit 0
|
[ -x "$DAEMON" ] || exit 0
|
||||||
|
|
||||||
|
# Create RUNDIR if it doesn't exist
|
||||||
|
[ -d "$RUNDIR" ] || mkdir -p "$RUNDIR"
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
# processname: wicd
|
# processname: wicd
|
||||||
# config:
|
# config:
|
||||||
# pidfile: /var/run/wicd.pid
|
# pidfile: %PIDFILE%
|
||||||
#
|
#
|
||||||
# $Id: template.init 9689 2008-03-27 16:15:39Z patrys $
|
# $Id: template.init 9689 2008-03-27 16:15:39Z patrys $
|
||||||
|
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -441,7 +441,6 @@ try:
|
|||||||
piddir = os.path.dirname(wpath.pidfile)
|
piddir = os.path.dirname(wpath.pidfile)
|
||||||
if not piddir.endswith('/'):
|
if not piddir.endswith('/'):
|
||||||
piddir += '/'
|
piddir += '/'
|
||||||
data.append (( piddir, [] ))
|
|
||||||
if not wpath.no_install_docs:
|
if not wpath.no_install_docs:
|
||||||
data.append((wpath.docdir, ['INSTALL', 'LICENSE', 'AUTHORS',
|
data.append((wpath.docdir, ['INSTALL', 'LICENSE', 'AUTHORS',
|
||||||
'README', 'CHANGES', ]))
|
'README', 'CHANGES', ]))
|
||||||
|
|||||||
Reference in New Issue
Block a user