~jon-raiford/mythbuntu/lirc

« back to all changes in this revision

Viewing changes to debian/lirc.preinst

  • Committer: Mario Limonciello
  • Date: 2008-11-09 02:46:23 UTC
  • Revision ID: superm1@ubuntu.com-20081109024623-1o1j7uszmoveebe4
update lirc.install from debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
#DEBHELPER#
6
 
 
7
 
case "$1" in
8
 
    upgrade)
9
 
        #init script change in 0.8.2-0ubuntu6
10
 
        if dpkg --compare-versions "${2}" le-nl "0.8.2-0ubuntu6"
11
 
        then update-rc.d -f lirc remove > /dev/null
12
 
        #hardware.conf changed in 0.8.3~pre1-0ubuntu4
13
 
        elif dpkg --compare-versions "${2}" le-nl "0.8.3~pre1-0ubuntu4"
14
 
        then sed -i -e "s/^MODULES/REMOTE_MODULES/;
15
 
                                        s/^DEVICE/REMOTE_DEVICE/;
16
 
                                        s/^DRIVER/REMOTE_DRIVER/;
17
 
                                        s/^LIRCD_CONF/REMOTE_LIRCD_CONF/;
18
 
                                        s/^LIRCD_ARGS/REMOTE_LIRCD_ARGS/;" /etc/lirc/hardware.conf
19
 
        fi
20
 
        ;;
21
 
esac
22
 
 
23