1
0
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:
2020-08-31 21:07:30 +02:00
parent 367a9ab74d
commit 0ef443f97c
10 changed files with 42 additions and 65 deletions

View File

@@ -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)"

View File

@@ -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

View File

@@ -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() {

View File

@@ -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?

View File

@@ -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

View File

@@ -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

View File

@@ -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