~jon-raiford/mythbuntu/lirc

« back to all changes in this revision

Viewing changes to debian/lirc.postrm

  • Committer: Mario Limonciello
  • Date: 2008-11-09 02:48:27 UTC
  • Revision ID: superm1@ubuntu.com-20081109024827-c5szee0tyhwzllxw
sync lirc.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
set -e
3
3
 
4
 
. /usr/share/debconf/confmodule
 
4
if [ -f /usr/share/debconf/confmodule ]; then
 
5
        . /usr/share/debconf/confmodule
 
6
fi
5
7
 
6
8
#DEBHELPER#
7
9
 
8
 
if [ "$1" = "purge" ]; then
9
 
        [ -x /usr/sbin/update-devfsd ] && /usr/sbin/update-devfsd >&2
10
 
        rm -f /etc/modprobe.d/lirc
11
 
#       rm -f /etc/lircd.conf.old /etc/lircd.conf.new
12
 
fi
13
 
 
14
 
#debhelper may use debconf stuff and update-devfsd restarts devfsd which
15
 
#doesn't close stdin/out/err properly.
16
 
db_stop
 
10
db_stop || true