Imported Debian patch 2.3.1-79
[debian/makedev] / debian / init.d
index c3f1dec0222de46c921584540b70c0bb9a8b4fc9..c3a72e20006215b21325f9d73feee1c2e48f7e4d 100644 (file)
@@ -10,13 +10,13 @@ case "$1" in
        test -L /dev/MAKEDEV || ln -fs /sbin/MAKEDEV /dev/MAKEDEV
 
        # create dvb-devices, if the dvb-directory allready exists, and 
-       # no devfs is used (this a workaround for the changed major-number
+       # no devfs or udev is in use (workaround for the changed major-number
        # of the dvb-devices, introduced in kernel 2.6.8, to be able to 
        # switch between kernels <= 2.6.7 and >= 2.6.8, without manual 
        # recreation of the devices (MAKEDEV dvb checks the kernel-version 
        # and uses the correct major-number))
        
-       if [ ! -e /dev/.devfsd ]; then
+       if [ ! -e /dev/.devfsd -a ! -e /dev/.udevdb ]; then
                if [ -d /dev/dvb ]; then
                        cd /dev && ./MAKEDEV dvb
                fi