debian: refresh debian packaging to use current best practices
[grml-udev-config.git] / debian / grml-udev-config.grml-udev.init
index 8818e14..fdd3c57 100644 (file)
@@ -44,7 +44,7 @@ udev_exec() {
 # test whether udev is enabled in init's configuration
 udev_active() {
   # file-rc:
-  if [ -r /etc/runlevel.conf ] && egrep -q '^[0-9]+.*-.*-.*\/etc\/init.d\/ydev$' /etc/runlevel.conf ; then
+  if [ -r /etc/runlevel.conf ] && egrep -q '^[0-9]+.*-.*-.*\/etc\/init.d\/udev$' /etc/runlevel.conf ; then
     return 0
   fi
 
@@ -81,13 +81,6 @@ case "$1" in
           printf 'Warning: /etc/grml/autoconfig.functions could not be read.\n'>&2
         fi
 
-        # ugly workaround to get udev >=208-6 without systemd working
-        # without long delay during udev startup :( more details at
-        # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754987
-        if cat /sys/class/net/lo/operstate 2>/dev/null | grep -q 'down' ; then
-          ip link set dev lo up
-        fi
-
         # support bootoption noudev and inform user how to skip
         # execution of udev (being bootoption noudev)
         if ! grep -q noudev /proc/cmdline ; then