Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91353 Details for
Bug 134718
open-iscsi - add automatic login to init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
iscsi-login init.d script
iscsi-login-init.d (text/plain), 825 bytes, created by
Anatoly Shipitsin
on 2006-07-10 05:31:03 UTC
(
hide
)
Description:
iscsi-login init.d script
Filename:
MIME Type:
Creator:
Anatoly Shipitsin
Created:
2006-07-10 05:31:03 UTC
Size:
825 bytes
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/files/iscsid-init.d,v 1.4 2006/03/07 08:26:46 robbat2 Exp $ > >depend() { > use iscsid >} > >do_login() { > msg="$1" > shift > action="$1" > shift > opts="$@" > einfo "Read node list" > targets=`/usr/sbin/iscsiadm -m node 2> /dev/null | sed 's@\[\(.*\)\]..*@\1@g'` > for m in ${targets}; do > ebegin "${msg} - ${m}" > einfo "/usr/sbin/iscsiadm -m node -r $m $action" > /usr/sbin/iscsiadm -m node -r $m $action > ret=$? > eend $ret > [ $ret -ne 0 ] && return $ret > done > return 0 >} > >start() { > do_login 'Attach disks' '-l' > ret=$? > eend $ret > return $ret >} > >stop() { > do_login 'Deattach disks' '-u' > ret=$? > eend $ret > return $ret >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 134718
:
87776
| 91353 |
117728