~ubuntu-branches/ubuntu/lucid/brltty/lucid-200912100610

« back to all changes in this revision

Viewing changes to debian/brltty.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-10-14 10:19:16 UTC
  • Revision ID: james.westby@ubuntu.com-20091014101916-lt0gbhrs4g1l55gq
Tags: 4.0-7ubuntu2
* Fixes cherry-picked from debian:
  - debian/brltty.init: Fix incorrect LSB header, cherry-picked from Debian.
    (LP: #450176)
  - debian/brltty.postinst: Recover from previous init script LSB errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    update-initramfs -u
22
22
fi
23
23
 
 
24
# Recover from incorrect init.d script headers in version 4.0-8 and earlier
 
25
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "4.0-8" \
 
26
   && [ -f /etc/rcS.d/S[0-9][0-9]brltty ] \
 
27
   && [ -f /etc/rc0.d/K[0-9][0-9]brltty ] \
 
28
   && [ -f /etc/rc6.d/K[0-9][0-9]brltty ] ; then
 
29
    update-rc.d -f brltty remove
 
30
fi
 
31
 
24
32
#DEBHELPER#
25
33