]>
Commit | Line | Data |
---|---|---|
092b90ae SS |
1 | #!/bin/bash |
2 | ||
3 | ISCSIADM=/sbin/iscsiadm | |
4 | SESSION_FILE=/run/initramfs/iscsi.sessions | |
5 | ||
6 | if [ ! -f $SESSION_FILE ] ; then | |
7 | exit 0 | |
8 | fi | |
9 | ||
10 | while read t num i target; do | |
11 | ip=${i%:*} | |
12 | $ISCSIADM -m node -p $ip -T $target -o update -n node.startup -v onboot | |
13 | done < $SESSION_FILE | |
14 |