# 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
# 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_action_msg "If your system hangs now, disable udev with 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