]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- don't duplicate "WARNING", use warn()
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 7 Aug 2008 06:58:24 +0000 (06:58 +0000)
committerPaweł Gołaszewski <blues@pld-linux.org>
Thu, 7 Aug 2008 06:58:24 +0000 (06:58 +0000)
svn-id: @9858

geninitrd

index 5cce7d0a26615feb8537ac3257bd6a3bebfc44ea..e321ed32269c471e14ddfd348da0892a9743356d 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -610,7 +610,7 @@ find_modules_ide() {
                                                fi
 
                                                if [ -z "$idemodules" ]; then
-                                                       echo "WARNING: rootfs on IDE device but no related modules found, loading ide-generic."
+                                                       warn "rootfs on IDE device but no related modules found, loading ide-generic."
                                                        idemodules="ide-generic"
                                                fi
 
@@ -621,9 +621,9 @@ find_modules_ide() {
                                        # }}}
                                        # else tryauto {{{
                                        else
-                                               [ -r /usr/share/pci-database/ide.pci ] || echo "WARNING: /usr/share/pci-database/ide.pci missing."
-                                               [ -r /proc/bus/pci/devices ] || echo "WARNING: /proc/bus/pci/devices missing."
-                                               echo "Automatic IDE modules finding not available."
+                                               [ -r /usr/share/pci-database/ide.pci ] || warn "/usr/share/pci-database/ide.pci missing."
+                                               [ -r /proc/bus/pci/devices ] || warn "/proc/bus/pci/devices missing."
+                                               warn "Automatic IDE modules finding not available."
                                        fi
                                        # }}}
                                fi
@@ -638,7 +638,7 @@ find_modules_ide() {
 is_lvm_node() {
        local node="$1"
        if [ ! -e "$node" ]; then
-               warn "WARNING: check_lvm(): node $node doesn't exist!"
+               warn "check_lvm(): node $node doesn't exist!"
                return 1
        fi
 
@@ -1880,7 +1880,7 @@ if is_yes "$FB_SPLASH"  && is_yes "$BOOT_SPLASH"; then
 fi
 
 if [ ! -f /proc/mounts ]; then
-       warn "WARNING: /proc filesystem not mounted, may cause wrong results or failure."
+       warn "/proc filesystem not mounted, may cause wrong results or failure."
 fi
 
 if [ -d /usr/lib64 ]; then
This page took 0.044899 seconds and 4 git commands to generate.