From f167a581e7d7928b1a327f183b87db365f56debf Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Thu, 9 Jan 2020 22:04:12 +0100 Subject: readded copyright line in init scripts, whitespace Signed-off-by: Joerg Bornkessel --- etc/init.d/vdr | 5 +++-- etc/init.d/vdr-x11 | 1 + etc/init.d/wakeup-reboot-halt | 3 ++- 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." -- cgit v1.2.3-65-gdbad