1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-29 01:42:33 +01:00

Moved from generated init files to static.

Let the maintainers do their choices, instead of jump into ideas about
how init files should looks like.

Adjusted gitignore file.
This commit is contained in:
2020-08-25 20:38:00 +02:00
parent 9cefcee94b
commit 3499631070
11 changed files with 37 additions and 100 deletions

38
data/init/gentoo/wicd Executable file
View File

@@ -0,0 +1,38 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
WICD_DAEMON=/usr/sbin/wicd
WICD_PIDFILE=/run/wicd/wicd.pid
depend() {
need dbus
after hald
provide net
}
start() {
ebegin "Starting wicd daemon"
# fix Gentoo bug 296197
[ -f /etc/wicd/wired-settings.conf ] && sed -i 's/^\[\]$//' /etc/wicd/wired-settings.conf
"${WICD_DAEMON}" >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Stopping wicd daemon and closing connections"
# can't use ssd because it needs the -k option
"${WICD_DAEMON}" -k >/dev/null 2>&1
eend $?
}
force_kill() {
ebegin "Stopping wicd daemon"
start-stop-daemon --stop --pidfile "${WICD_PIDFILE}"
eend $?
}
restart() {
force_kill
sve_start
}