Comment 4 for bug 14963

Revision history for this message
In , C.Huhn (c-huhn) wrote : hotplug: don't fail on creating /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-21
Severity: normal
Tags: patch
Followup-For: Bug #300726

Debian policy 9.1.2: "These scripts must not fail if either of these operations fail."

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-reiser4
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages hotplug depends on:
ii bash 2.05b-24 The GNU Bourne Again SHell
ii debconf 1.4.30.11 Debian configuration management sy
ii grep 2.5.1.ds1-4 GNU grep, egrep and fgrep
ii module-init-tools 3.2-pre1-2 tools for managing Linux kernel mo
ii modutils 2.4.26-1.2 Linux module utilities
ii procps 1:3.2.1-2 The /proc file system utilities
ii sed 4.1.2-8 The GNU sed stream editor

-- debconf information excluded

*** /tmp/hotplug.postinst.diff
--- hotplug.postinst.orig 2005-04-04 12:51:39.180941066 +0200
+++ hotplug.postinst 2005-04-04 12:52:29.213034302 +0200
@@ -88,7 +88,7 @@
 case "$1" in
     configure)
  create_config_file
- [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/
+ [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/ || true
     ;;

     abort-upgrade|abort-remove|abort-deconfigure)