[Pkg-lirc-maint] [PATCH 13/13] drop contrib/lirc.debian initscript example

Stefan Lippers-Hollmann s.l-h at gmx.de
Fri Dec 12 23:00:16 UTC 2014


Debian defaults to using insserv since 2009 (Debian 6.0 "squeeze"),
which requires all initscripts to sport LSB headers to allow dependency
based boot sequencing, thereby breaking this initscript (insserv was
already optional/ recommended in Debian 2008, Debian 5.0 "lenny"). To
the best of my knowledge the situation is similar for Ubuntu, as far
as I know they made LSB headers mandatory before Debian.

Starting with Debian 9 "jessie" (to be released in 2015), systemd is
the default init system, allowing the upstream systemd units to be used
without changes. Private lirc builds targetted at older Debian systems
are recommended to build upon the existing initscript(s) provided by
the packaged lirc version of the respective Debian suites. Given that
lirc 0.9.x depends on kernel >= 2.6.36 (which restricts the usability
of this code base to newer than Debian 7 "wheezy", or the -by now
EOLed- Debian 6.0 "squeeze" with manually updated kernels), it doesn't
make sense to retain this ancient initscript.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h at gmx.de>
---
The situation should be very similar for SuSE/ OpenSUSE, which means
contrib/lirc.suse, contrib/lirc.suse6.2 and contrib/lirc.suse7.1 should
probably be removed as well. Likewise contrib/lirc.redhat is probably
obsolete as well.

 contrib/lirc.debian | 48 ------------------------------------------------
 1 file changed, 48 deletions(-)
 delete mode 100755 contrib/lirc.debian

diff --git a/contrib/lirc.debian b/contrib/lirc.debian
deleted file mode 100755
index e34f32e..0000000
--- a/contrib/lirc.debian
+++ /dev/null
@@ -1,48 +0,0 @@
-#! /bin/sh
-#
-# This is an init script for Debian 2.1 Slink distribution.
-# Copy it to /etc/init.d/lirc and type
-# > update-rc.d lirc defaults 20
-#
-
-
-test -f /usr/local/sbin/lircd || exit 0
-test -f /usr/local/sbin/lircmd || exit 0
-
-case "$1" in
-  start)
-    echo -n "Starting lirc daemon: lircd"
-    start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- --device=/dev/lirc
-    echo -n " lircmd"
-    start-stop-daemon --start --quiet --exec /usr/local/sbin/lircmd
-    echo "."
-    ;;
-  stop)
-    echo -n "Stopping lirc daemon: lircmd"
-    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircmd
-    echo -n " lircd"
-    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircd
-    echo "."
-    ;;
-  reload|force-reload)
-    start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircd
-    start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircmd
-    ;;
-  restart)
-    echo -n "Stopping lirc daemon: lircmd"
-    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircmd
-    echo " lircd"
-    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircd
-    sleep 1
-    echo -n "Starting lirc daemon: lircd"
-    start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- --device=/dev/lirc
-    echo -n " lircmd"
-    start-stop-daemon --start --quiet --exec /usr/local/sbin/lircmd
-    echo "."
-    ;;
-  *)
-    echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
-    exit 1
-esac
-
-exit 0
-- 
2.1.3




More information about the Pkg-lirc-maint mailing list