aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcraig <craig@haquarter.de>2008-11-21 22:46:36 +0100
committercraig <craig@haquarter.de>2009-06-28 20:37:33 +0200
commitcac66e09707752906215511e69ef1141d56bd2c4 (patch)
treef414f837483a702ada87001cea5fad12487f9c82 /defaults/initrd.scripts
parentApply fix to deference links for gentoo bug #269603 (diff)
downloadgenkernel-cac66e09707752906215511e69ef1141d56bd2c4.tar.gz
genkernel-cac66e09707752906215511e69ef1141d56bd2c4.tar.bz2
genkernel-cac66e09707752906215511e69ef1141d56bd2c4.zip
iSCSI patch for genkernel
Diffstat (limited to 'defaults/initrd.scripts')
-rwxr-xr-xdefaults/initrd.scripts11
1 files changed, 11 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index b63568d..1ccab59 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -628,6 +628,17 @@ startVolumes() {
fi
}
+startiscsi() {
+
+ if [ -n "${ISCSI_I}" ] && [ -n "${ISCSI_T}" ] && [ -n "${ISCSI_A}" ]
+ then
+ good_msg "Activating ISCSI"
+ iscsistart -i "${ISCSI_I}" -t "${ISCSI_T}" -g 1 -a ${ISCSI_A}
+ fi
+
+}
+
+
# Open a LUKS device
# It is either the root or a swap, other devices are supported in the scripts provided with sys-fs/cryptsetup-luks
# $1 - root/swap