diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-08-28 19:50:17 -0500 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-09-22 16:14:58 -0300 |
commit | 4d6f304fcf80e7161ecdcf68117895526a92ca85 (patch) | |
tree | 25251120a2b39b34e2655fc55b57e473ae28d433 /pcr/openrc-misc/lircd-0.8.6-r2 | |
parent | 36a1a87cbf2435efa850805951c1a894e286d65c (diff) | |
download | abslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.tar.gz abslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.tar.bz2 abslibre-4d6f304fcf80e7161ecdcf68117895526a92ca85.zip |
openrc-misc-20150828-1: updating version
Diffstat (limited to 'pcr/openrc-misc/lircd-0.8.6-r2')
-rw-r--r-- | pcr/openrc-misc/lircd-0.8.6-r2 | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/pcr/openrc-misc/lircd-0.8.6-r2 b/pcr/openrc-misc/lircd-0.8.6-r2 deleted file mode 100644 index d6f16ba07..000000000 --- a/pcr/openrc-misc/lircd-0.8.6-r2 +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd-0.8.6-r2,v 1.2 2014/01/23 21:37:11 vapier Exp $ - -PIDFILE=/var/run/lirc/${SVCNAME}.pid -: ${LIRCD_SYMLINKFILE:=/dev/lircd} -: ${LIRCD_SOCKET:=/var/run/lirc/lircd} - -depend() { - need localmount - use modules - provide lirc -} - -start() { - local retval - - ebegin "Starting lircd" - - for retval in ${LIRCD_SET_SYSCLASSRCS} ; do - if [ -e /sys/class/rc/${retval}/protocols ] && \ - grep -qs 'lirc' /sys/class/rc/${retval}/protocols ; then - einfo "Setting lirc protocol active for ${retval}" - echo lirc >/sys/class/rc/${retval}/protocols - fi - done - - checkpath -q -d -m 0755 -o root:root /var/run/lirc - rm -Rf ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE} - if [ $? -ne 0 ]; then - eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}" - return 1 - fi - - start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \ - -P "${PIDFILE}" ${LIRCD_OPTS} - retval=$? - - if [ ${retval} -ne 0 ]; then - rm -Rf ${LIRCD_SOCKET} - fi - - eend ${retval} -} - -stop() { - ebegin "Stopping lircd" - rm -f ${LIRCD_SYMLINKFILE} - start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd - eend $? -} |