debian: refresh debian packaging to use current best practices
[grml-udev-config.git] / debian / grml-udev-config.grml-udev.init
index 56b4a5a..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
 
@@ -84,12 +84,12 @@ case "$1" in
         # support bootoption noudev and inform user how to skip
         # execution of udev (being bootoption noudev)
         if ! grep -q noudev /proc/cmdline ; then
-           check_for_non_interactive && \
-              log_warning_msg "If your system hangs now skip execution of udev via bootoption noudev"
+          check_for_non_interactive && \
+            log_action_msg "If your system hangs now, disable udev with bootoption \"noudev\"" && echo
         else
            # - allow execution of initscript through FORCE=1 when booting with noudev
            if [ -z "$FORCE" ] ; then
-              log_failure_msg "Bootoption noudev found. Skipping execution of udev init script."
+              log_failure_msg "Bootoption \"noudev\" found. Skipping execution of udev init script."
               if ! check_for_non_interactive ; then
                  printf "\nIt has been detected that the udev init script\n"
                  printf "has been run from an interactive shell.\n"