]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
each module their own rcsid var
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 19 Feb 2011 13:59:40 +0000 (13:59 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 19 Feb 2011 13:59:40 +0000 (13:59 +0000)
svn-id: @12169

19 files changed:
geninitrd
mod-blkid.sh
mod-bootsplash.sh
mod-condecor.sh
mod-depmod24.sh
mod-dmraid.sh
mod-fbsplash.sh
mod-ide.sh
mod-luks.sh
mod-lvm.sh
mod-md.sh
mod-multipath.sh
mod-nfs.sh
mod-sata.sh
mod-scsi.sh
mod-suspend.sh
mod-tuxonice.sh
mod-udev.sh
mod-uvesafb.sh

index 413e615d8c48be6ddfcbdd34df9be3177d01dda6..80f341441d4b9aa8ddfa20302dd7eec5fe81c71c 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -111,21 +111,23 @@ geninitrd_load_mods() {
                        die "$mod geninitrd module can't be loaded"
                fi
                . /lib/geninitrd/mod-$mod.sh
-               debug "# $RCSID (mod-$mod)"
 
-               if type setup_mod_$mod > /dev/null; then
-                       # add to list which need init
-                       GENINITRD_MODS="$GENINITRD_MODS $mod"
-               fi
+               GENINITRD_MODS="$GENINITRD_MODS $mod"
        done
 }
 
 # setup geninitrd modules
 geninitrd_setup_mods() {
-       local mod
+       local mod rcsid
 
        for mod in $GENINITRD_MODS; do
-               eval setup_mod_$mod
+               eval rcsid=$(echo \$$mod | LC_ALL=C tr '[a-z]' '[A-Z]')_RCSID
+               debug "# $rcsid (mod-$mod)"
+
+               # some mods want init
+               if type setup_mod_$mod > /dev/null; then
+                       eval setup_mod_$mod
+               fi
        done
 }
 
index 87bc2ac11660999cc8a3a9689efe80f046ca3eb6..e8310fd62dd587b200c1b86dafd658396634fa46 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+BLKID_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: blkid
 USE_BLKID=${USE_BLKID:-yes}
index 85762c6dc98790ccf4ed39386403ec796a130782..542c2042496f6804f6ac9ff8a63e0e9f0ad63793 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+BOOTSPLASH_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: bootsplash
 BOOT_SPLASH=${BOOT_SPLASH:-no}
index f63529bd0ef15160d61fd6833be962d30926226a..0b4c30db5a1ce4cd423d3d0ac698d348e8188a98 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+CONDECOR_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: condecor
 FB_CON_DECOR=${FB_CON_DECOR:-no}
index ea119717586e55b25ce7723b0a0de47f35192bb1..071bde213e5d94fcb561cbd9498b50906cc03a72 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+DEPMOD24_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: depmod for 2.4 kernel
 
index 503dad225f22659af4713bd5f56ead2c142a7134..853e9580ac99058c96bb96519fdb9a7740a4beea 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+DMRAID_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: dmraid
 USE_DMRAID=${USE_DMRAID:-yes}
index 11cba3e066e3a88b8fdf1e67a77a05a5b823cb07..a9ed6ca505e5fd340f484acab36d96960d2a26e2 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+FBSPLASH_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: fbsplash
 FB_SPLASH=${FB_SPLASH:-no}
index 33fde06c637d6ab2eb009c34be834d8ef1915470..3e7154f1d22b0a42cac6ce79cbc58917f6b7aade 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+IDE_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: ide
 
index c02a98674491f66d92d39c48c3139d17376dd221..bdecf557e57d4319e2379e016df035c8ac72d966 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+LUKS_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: cryptsetup luks
 USE_LUKS=${USE_LUKS:-yes}
index 10ca343aeaaebab2d267c6f144a0db786935662c..73955c54c6b6c5c390f2cd5ace6e2194c5b78a9c 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+LVM_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: LVM
 USE_LVM=${USE_LVM:-yes}
index c4730a4a8645aa07f0e999270e4843b6d90a772b..db3bb5faea8719f0e21125a8d7a668e5aa360e80 100644 (file)
--- a/mod-md.sh
+++ b/mod-md.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+MD_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: mdadm
 USE_MD=${USE_MD:-yes}
index ce1c73ec2655756c5743d37ff9f2ee79ab7e8ce9..2a6121b9acac8f3462b6451ed5d6cb9b340d5c57 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+MULTIPATH_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: dm-multipath
 USE_MULTIPATH=${USE_MULTIPATH:-yes}
index f00cb6df551b30d339b2b7dcc6f166b294c5c7db..7e197afa57554bc3fa0afa002c7fe77cfd0d06cc 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+NFS_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: nfs
 
index f1a7a8683d879fcb2892c96bc924060c364c7837..2fc477d183dac7d0061961d9d428ca1d089551b9 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+SATA_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: sata
 
index 288f0d91b58fece8a3d3fe7d19376074da9f45e9..03e8565aaa97624b94fcf489b49b7ef34054c19a 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+SCSI_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: scsi
 
index a35ba7820d3a804f4c26010e173ab00d36a087e5..ffc86c6ed80b3bfe6041430f0c41625ca9895fac 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+SUSPEND_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: suspend
 USE_SUSPEND=${USE_SUSPEND:-yes}
index ca8e905b20d4a9e1824e4af179f8c0bae25eb67a..f8d9d8057b61863a3768a3401d9654f76cede3d8 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+TUXONICE_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: tuxonice
 USE_TUXONICE=${USE_TUXONICE:-no}
index 52395c4da7b3e249ffd8f229ff60d8718ebf2859..a7d4fa19ccf93924af51ffc150e0da54d893cd3f 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+UDEV_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: udev
 USE_UDEV=${USE_UDEV:-yes}
index 0e760751241cca2dd4268b896ec2c4e78d952247..449e5f39cfa780f14218cab52f0e3d5d54f149ee 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-RCSID='$Revision$ $Date::                            $'
+UVESAFB_RCSID='$Revision$ $Date::                            $'
 
 # geninitrd mod: uvesafb
 USE_V86D=${USE_V86D:-yes}
This page took 0.61912 seconds and 4 git commands to generate.