--- trunk/udev/udev.rc 2011/02/28 19:42:34 1288 +++ trunk/udev/udev.rc 2011/02/28 20:10:49 1289 @@ -30,7 +30,7 @@ echo CONSOLE=${CONSOLE} > /dev/.udev_populate # populate /dev with devices already found by the kernel - echo -e ${COLOREDSTAR}" Populating /dev with existing devices through uevents ..." + rc_print " Populating /dev with existing devices through uevents ..." if [[ ${RC_COLDPLUG} = yes ]] then /sbin/udevadm trigger @@ -47,7 +47,7 @@ evaluate_retval # loop until everything is finished - echo -e ${COLOREDSTAR}" Letting udev process events ..." + rc_print " Letting udev process events ..." /sbin/udevadm settle --timeout=60 evaluate_retval @@ -61,7 +61,7 @@ seed_dev() { # seed /dev with some things that we know we need - echo -e ${COLOREDSTAR}" Seeding /dev with needed nodes ..." + rc_print " Seeding /dev with needed nodes ..." ( [ ! -c /dev/console ] && mknod /dev/console c 5 1 [ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1 @@ -96,7 +96,7 @@ [ -c /dev/console ] ; need_redirect=$? # create a ramdisk for populating udev - echo -e ${COLOREDSTAR}"Mounting udev at /dev ..." + rc_print "Mounting udev at /dev ..." # many video drivers needed exec access fstype=ramfs # tmpfs was suggested by Greg Kroah-Hartman @@ -107,10 +107,10 @@ evaluate_retval # if a device tarball exists load it and if it is activated - echo -e ${COLOREDSTAR}"Configurating system to use udev ..." + rc_print "Configurating system to use udev ..." if [[ ${RC_DEVICE_TARBALL} = yes ]] then - echo -e ${COLOREDSTAR}" Populating /dev with saved device nodes ..." + rc_print " Populating /dev with saved device nodes ..." tar -jxpf /lib/udev/state/devices.tar.bz2 -C /dev evaluate_retval fi @@ -120,11 +120,11 @@ if [ -e /proc/sys/kernel/hotplug ] then - echo -e ${COLOREDSTAR}" Using netlink for hotplug events ..." + rc_print " Using netlink for hotplug events ..." echo "" > /proc/sys/kernel/hotplug evaluate_retval else - echo -e ${COLOREDSTAR}${COLYELLOW}" Kernel was not compiled with hotplug support !" + rc_print ${COLYELLOW}" Kernel was not compiled with hotplug support !" print_status failure fi @@ -134,7 +134,7 @@ modprobe -q unix 2>/dev/null fi - echo -e ${COLOREDSTAR}" Starting udevd daemon ..." + rc_print " Starting udevd daemon ..." if [ ${need_redirect} -eq 1 ] then # we need to open fds 0 1 2 @@ -150,7 +150,7 @@ populate_udev # create nodes that udev can't - echo -e ${COLOREDSTAR}" Finializing udev configuration ..." + rc_print " Finializing udev configuration ..." [[ -x /sbin/dmsetup ]] && /sbin/dmsetup mknodes &>/dev/null [[ -x /sbin/lvm ]] && /sbin/lvm vgscan -P --mknodes --ignorelockingfailure &>/dev/null [[ -x /sbin/evms_activate ]] && /sbin/evms_activate -q &>/dev/null @@ -162,7 +162,7 @@ stop_devicemanager() { - echo -e ${COLOREDSTAR}"Stopping udevd daemon ..." + rc_print "Stopping udevd daemon ..." start-stop-daemon --stop --exec /sbin/udevd evaluate_retval }