]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
rcS: Add support to call /init.late _after_ the network has been brought up.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 25 Jan 2012 03:03:25 +0000 (22:03 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 25 Jan 2012 03:03:25 +0000 (22:03 -0500)
Especially useful to then do such things as login in iSCSI storage.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/etc/init.d/rcS

index 3cc869d480cc1c3137aac5b7e8e7324ceabd1986..a893b5cbaee1eb8405e5f4116a202a95c8bcf8f0 100755 (executable)
@@ -99,6 +99,11 @@ lspci
 cat /proc/interrupts
 cat /proc/iomem
 
+if [ -x /init.late ]; then
+       action $"Waiting for init.late"
+       /init.late
+fi
+
 TEST=$(boot_parameter 'test')
 if [ $? == 0 ]; then
        echo "Starting $TEST testcase.."