]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- update
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 25 Sep 2004 13:53:05 +0000 (13:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    start_udev -> 1.2

start_udev

index fbf455338e7de89510ccea5856e19ba012cf3bc5..3f85f42d3f11e3a3b6cab6885576af8e85e27ee9 100644 (file)
@@ -27,7 +27,7 @@
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
 
-. /etc/init.d/functions
+. /etc/rc.d/init.d/functions
 
 prog=udev
 sysfs_dir=/sys
@@ -67,24 +67,30 @@ mount_udev() {
 
 
 grep -q " ${udev_root%/} " /proc/mounts || { 
-       STRING=$"Mounting... tmpfs at $udev_root: "
-       echo -n "$STRING "; 
-       mount_udev && success $"$STRING" || failure $"$STRING"; 
+       echo -n "Mouting tmpfs at $udev_root"
+       if (mount_udev); then
+           deltext
+           ok
+       else
+           deltext
+           fail
+       fi
 }
  
 
-STRING=$"Making extra nodes: "
-echo -n "$STRING "
-make_extra_nodes && success $"$STRING" || failure $"$STRING"
-echo
+echo -n "Making extra nodes"
+if (make_extra_nodes); then
+    deltext
+    ok
+else
+    deltext
+    fail
+fi
 
 export ACTION=add
 export UDEV_NO_SLEEP=1
-STRING=$"Starting udev: "
 # propagate $udev_root from /sys
-echo -n "$STRING "
 rm -f $udev_root/.udev.tdb
-/sbin/udevstart && success $"$STRING" || failure $"$STRING"
-echo
+run_cmd "Starting udev" /sbin/udevstart
 
 exit 0
This page took 0.070563 seconds and 4 git commands to generate.