Skip to content

Commit

Permalink
Merge branch 'master' of git://git.open-osd.org/osc-osd
Browse files Browse the repository at this point in the history
  • Loading branch information
joc02012 committed Sep 27, 2012
2 parents 1146ff5 + 38106ba commit 24b3088
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tgt
Submodule tgt updated from 6bb84a to df0815
9 changes: 8 additions & 1 deletion up-pan
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set OTGTD=$dir/$OTGTD_NAME
set TARGETNAME=`/pan/bin/getdevinfo -q datasn`
# logfile name
set LOG="/var/log/otgtd.log"
set STAY=""

switch($1)
case "down":
Expand Down Expand Up @@ -40,7 +41,9 @@ case "stat":
breaksw

default:
if ("$1" != "") then
if ("$1" == "--stay") then
set STAY="yes"
elseif ("$1" != "") then
echo "what is $0 $1?!?"
exit
endif
Expand Down Expand Up @@ -76,3 +79,7 @@ $TGTADM --lld iscsi --mode logicalunit \
$TGTADM --lld iscsi --mode target --op show

echo "otgtd started, run up down to stop"

if ("$STAY"="yes") then
wait
endif

0 comments on commit 24b3088

Please sign in to comment.