aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2020-01-09 22:04:12 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2020-01-09 22:04:12 +0100
commitf167a581e7d7928b1a327f183b87db365f56debf (patch)
tree2cea83b65cc3ec0ea949ed727f953efa42ff4522
parentseveral minor fixes (diff)
downloadgentoo-vdr-scripts-f167a581e7d7928b1a327f183b87db365f56debf.tar.gz
gentoo-vdr-scripts-f167a581e7d7928b1a327f183b87db365f56debf.tar.bz2
gentoo-vdr-scripts-f167a581e7d7928b1a327f183b87db365f56debf.zip
readded copyright line in init scripts, whitespace
Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
-rw-r--r--etc/init.d/vdr5
-rw-r--r--etc/init.d/vdr-x111
-rw-r--r--etc/init.d/wakeup-reboot-halt3
3 files changed, 6 insertions, 3 deletions
diff --git a/etc/init.d/vdr b/etc/init.d/vdr
index c16e75c..4e2aba6 100644
--- a/etc/init.d/vdr
+++ b/etc/init.d/vdr
@@ -1,5 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
extra_commands="watchdogrestart"
@@ -70,7 +71,7 @@ start_vdr() {
eval ${_openvt} start-stop-daemon ${daemonctrl_opts} -- ${vdr_opts}
vdr_exitcode=$?
eend $vdr_exitcode "Failed to start vdr."
-
+
# TODO: Anything todo if starting failed? cleanups?
if [ $vdr_exitcode -lt 128 ]; then
@@ -97,7 +98,7 @@ stop_vdr() {
ebegin "Stopping ${VDRNAME}"
# Use --name here to allow us to kill vdr even after a new emerge
- start-stop-daemon --stop --quiet --retry 15 --exec ${VDR_BIN}
+ start-stop-daemon --stop --quiet --retry 15 --exec ${VDR_BIN}
exitcode=$?
eend $exitcode "Failed to stop vdr."
diff --git a/etc/init.d/vdr-x11 b/etc/init.d/vdr-x11
index b1959f4..64b10d0 100644
--- a/etc/init.d/vdr-x11
+++ b/etc/init.d/vdr-x11
@@ -1,5 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
description="Start minimal X server for VDR"
diff --git a/etc/init.d/wakeup-reboot-halt b/etc/init.d/wakeup-reboot-halt
index 555b064..01f11a4 100644
--- a/etc/init.d/wakeup-reboot-halt
+++ b/etc/init.d/wakeup-reboot-halt
@@ -1,5 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
extra_commands="mark_for_reboot"
@@ -15,7 +16,7 @@ depend() {
start() {
# check weather this time this is a reboot and I should shutdown
-
+
if [ -e "${STATEFILE}" ]; then
rm -f "${STATEFILE}"
einfo "This is a reboot to write the wakeup-time into the bios."