mirror of
https://github.com/gryf/wicd.git
synced 2025-12-30 18:32:28 +01:00
Removed bin/sbin out of config options.
Let's do this in pythonic way, optionally leave the decision to package maintainers, where to put binaries.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
. /etc/rc.conf
|
||||
. /etc/rc.d/functions
|
||||
|
||||
WICD_BIN="/usr/sbin/wicd"
|
||||
WICD_BIN="/usr/bin/wicd"
|
||||
|
||||
if [ -f /var/run/wicd/wicd.pid ]; then
|
||||
PID="$(cat /var/run/wicd/wicd.pid)"
|
||||
|
||||
@@ -19,7 +19,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
DESC="Network connection manager"
|
||||
NAME=wicd
|
||||
RUNDIR=/var/run/$NAME
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
DAEMON=/usr/bin/$NAME
|
||||
DAEMON_ARGS=""
|
||||
PIDFILE=$RUNDIR/wicd.pid
|
||||
SCRIPTNAME=/etc/init.d/wicd
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copyright 1999-2020 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
WICD_DAEMON=/usr/sbin/wicd
|
||||
WICD_DAEMON=/usr/bin/wicd
|
||||
WICD_PIDFILE=/run/wicd/wicd.pid
|
||||
|
||||
depend() {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
# Get service config - may override defaults
|
||||
# [ -f /etc/sysconfig/wicd ] && . /etc/sysconfig/wicd
|
||||
|
||||
WICD_BIN=/usr/sbin/wicd
|
||||
WICD_BIN=/usr/bin/wicd
|
||||
|
||||
start() {
|
||||
# Check if the service is already running?
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
|
||||
WICD_BIN=/usr/sbin/wicd
|
||||
WICD_BIN=/usr/bin/wicd
|
||||
|
||||
pidfile=/var/run/wicd/wicd.pid
|
||||
servicename=wicd
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
# This is defined in /usr/lib/python2.6/site-packages/wicd/wpath.py
|
||||
PIDFILE="/var/run/wicd/wicd.pid"
|
||||
DAEMON="/usr/sbin/wicd"
|
||||
DAEMON="/usr/bin/wicd"
|
||||
|
||||
# Define start and stop functions
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# Description: wicd, a wired and wireless connection manager.
|
||||
### END INIT INFO
|
||||
|
||||
WICD_BIN=/usr/sbin/wicd
|
||||
WICD_BIN=/usr/bin/wicd
|
||||
test -x $WICD_BIN || exit 5
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
Reference in New Issue
Block a user