Package: hotkey-setup
Version: 0.1-17
Severity: normal
Tags: patch

when the package is not installed (but not purged), the init script
/etc/init.d/hotkey-setup should not run, according to debian policy
9.3.2.

attached is a patch which should fix this, by exiting out if
dumpkeycodes (part of hotkey-setup, and used in the init script) is not
present.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages hotkey-setup depends on:
ii  dmidecode                     2.8-2      Dump Desktop Management Interface 

hotkey-setup recommends no packages.

-- no debconf information
--- hotkey-setup.orig   2006-07-24 10:27:55.000000000 -0400
+++ hotkey-setup        2006-07-24 10:32:35.000000000 -0400
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# do not run if not package is not installed
+test -x /usr/sbin/dumpkeycodes || exit 0
+
 manufacturer=`dmidecode --string system-manufacturer`
 name=`dmidecode --string system-product-name`
 version=`dmidecode --string system-version`

Reply via email to