~beehock/ubuntu/natty/lirc/lirc-fix-695767

« back to all changes in this revision

Viewing changes to debian/lirc.postinst

  • Committer: BeeHock Goh
  • Date: 2011-03-03 00:50:31 UTC
  • Revision ID: beehock@gmail.com-20110303005031-z7a2vjk4n8cyxvps
lirc-fix-695767-rework-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
        #This should be ran even if they haven't changed remotes
225
225
        if [ "$REMOTE_DRIVER" = "devinput" ]; then
226
226
                #present question
227
 
                EVENTS=`find /dev/input/* -not -type d -printf ", %p"`
 
227
                EVENTS=`find /dev/input/* -type d -exec find {} -not -type d -printf ", %p" \;`
228
228
                db_subst lirc/dev_input_device EVENTS $EVENTS
229
229
                db_input high lirc/dev_input_device || true
230
230
                db_go
626
626
 
627
627
db_stop
628
628
 
629
 
# Automatically added by dh_installinit
630
 
if [ -x "/etc/init.d/lirc" ]; then
631
 
        update-rc.d lirc defaults 19 >/dev/null
632
 
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
633
 
                invoke-rc.d lirc start || exit $?
634
 
        else
635
 
                /etc/init.d/lirc start || exit $?
636
 
        fi
637
 
fi
638
 
# End automatically added section
639
 
# Automatically added by dh_installudev
640
 
if [ "$1" = configure ]; then
641
 
        if [ -e "/etc/udev/rules.d/85_lirc.rules" ]; then
642
 
                echo "Preserving user changes to /etc/udev/rules.d/85-lirc.rules ..."
643
 
                if [ -e "/etc/udev/rules.d/85-lirc.rules" ]; then
644
 
                        mv -f "/etc/udev/rules.d/85-lirc.rules" "/etc/udev/rules.d/85-lirc.rules.dpkg-new"
645
 
                fi
646
 
                mv -f "/etc/udev/rules.d/85_lirc.rules" "/etc/udev/rules.d/85-lirc.rules"
647
 
        fi
648
 
fi
649
 
# End automatically added section
650
 
 
 
629
#DEBHELPER#
651
630