Package: pcmciautils
Version: 014-3
Severity: normal
Tags: patch

Pcmciautils does not require udev anymore (as per #350182),
but the startup script bails out with an exit code if udev isn't installed.
Removing lines 92-97 from /etc/init.d/pcmciautils fixes this. 

Furthermore, please load the pcmcia module: without udev installed,
Nobody else will load it and hence 16bit pcmcia cards won't be detected.
(the upstream init script does that, but a previous debian mod moved this
to udev scripts.)

A patch is included.

regards
az


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (980, 'testing'), (970, 'unstable'), (500, 
'oldstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.13
Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1)

Versions of packages pcmciautils depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libsysfs2                   2.1.0-1      interface library to sysfs
ii  lsb-base                    3.1-23.1     Linux Standard Base 3.1 init scrip
ii  module-init-tools           3.3-pre4-2   tools for managing Linux kernel mo

Versions of packages pcmciautils recommends:
pn  udev                          <none>     (no description available)

-- no debconf information
--- init.orig   2007-04-14 16:07:36.000000000 +1000
+++ init.patched        2007-04-14 16:09:12.000000000 +1000
@@ -89,13 +89,6 @@
     exit 1
 fi
 
-if ! [ -e /dev/.udev ]; then
-    if ! run_by_init; then
-       log_failure_msg "pcmciautils requires udev to be enabled"
-    fi
-    exit 1
-fi
-
 if [ "$VERBOSE" = "no" ]; then
     MODPROBE_OPTIONS="$MODPROBE_OPTIONS -Q"
     export MODPROBE_OPTIONS
@@ -110,6 +103,7 @@
        fi
        
        modprobe -b $PCIC $PCIC_OPTS
+       modprobe pcmcia >/dev/null 2>&1
        
        log_end_msg $?
        ;;

Reply via email to