--- /usr/portage/app-misc/lirc/files/lircd-0.8.6 2009-10-04 19:48:29.000000000 +0100 +++ lircd 2009-10-05 23:15:48.754658422 +0100 @@ -14,7 +14,8 @@ start() { local retval ebegin "Starting lircd" - rm -f ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE} + #rm -f ${LIRCD_SOCKET} && + ln -snf ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE} if [ $? -ne 0 ]; then eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}" return 1 @@ -24,16 +25,16 @@ -P "${PIDFILE}" ${LIRCD_OPTS} retval=$? - if [ ${retval} -ne 0 ]; then - rm -f ${LIRCD_SOCKET} - fi +# if [ ${retval} -ne 0 ]; then +# rm -f ${LIRCD_SOCKET} +# fi eend ${retval} } stop() { ebegin "Stopping lircd" - rm -f ${LIRCD_SYMLINKFILE} + #rm -f ${LIRCD_SYMLINKFILE} start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd eend $? }