~jon-raiford/mythbuntu/lirc

« back to all changes in this revision

Viewing changes to debian/lirc.postinst

  • Committer: Mario Limonciello
  • Date: 2008-11-09 03:05:37 UTC
  • Revision ID: superm1@ubuntu.com-20081109030537-86uw20glkdroei0n
merge debian/lirc.postinst from debian (again very few changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#!/bin/sh 
2
2
set -e
3
3
 
4
4
DebconfLoad ()
52
52
        db_get lirc/timer
53
53
        LIRC_PARALLEL_TIMER=$RET
54
54
}
 
55
 
55
56
check_hardware_conf ()
56
57
{
57
58
        #Make sure that all variables are there, and also create the file if
513
514
 
514
515
        [ -x /sbin/udevd ] && invoke-rc.d udev reload >&2
515
516
 
516
 
        [ -x /usr/sbin/update-devfsd ] && /usr/sbin/update-devfsd >&2
517
 
 
518
517
        #unload any old modules before starting
519
518
        unload_modules
520
519
 
556
555
 
557
556
                # if there is a misplaced config file it is ok to move it to
558
557
                # the right place
559
 
                if [ -f /etc/lircmd.conf ];then
 
558
                if [ -f /etc/lircmd.conf ];then 
560
559
                        echo moving /etc/lircmd.conf to /etc/lirc/
561
560
                        mv /etc/lircmd.conf /etc/lirc/
562
561
 
571
570
        if [ -f /var/log/lircd ]
572
571
        then
573
572
                db_get lirc/remove_var-log-lircd
574
 
                if $RET
575
 
                then
 
573
                if $RET 
 
574
                then 
576
575
                        rm /var/log/lircd
577
576
                fi
578
577
        fi