summaryrefslogtreecommitdiff
path: root/ctdb/tests/UNIT/eventscripts/stubs/smnotify
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/UNIT/eventscripts/stubs/smnotify')
-rwxr-xr-xctdb/tests/UNIT/eventscripts/stubs/smnotify47
1 files changed, 37 insertions, 10 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/stubs/smnotify b/ctdb/tests/UNIT/eventscripts/stubs/smnotify
index c3b9f80c69b..5606b3d15f9 100755
--- a/ctdb/tests/UNIT/eventscripts/stubs/smnotify
+++ b/ctdb/tests/UNIT/eventscripts/stubs/smnotify
@@ -14,17 +14,44 @@ sip=""
mon_name=""
state=""
-while [ $# -gt 0 ] ; do
+while [ $# -gt 0 ]; do
case "$1" in
- --client) cip="$2" ; shift 2 ;;
- --client=*) cip="${1#*=}" ; shift ;;
- --ip) sip="$2" ; shift 2 ;;
- --ip=*) sip="${1#*=}" ; shift ;;
- --server) mon_name="$2" ; shift 2 ;;
- --server=*) mon_name="${1#*=}" ; shift ;;
- --stateval) state="$2" ; shift 2 ;;
- --stateval=*) state="${1#*=}" ; shift ;;
- --) shift ; break ;;
+ --client)
+ cip="$2"
+ shift 2
+ ;;
+ --client=*)
+ cip="${1#*=}"
+ shift
+ ;;
+ --ip)
+ sip="$2"
+ shift 2
+ ;;
+ --ip=*)
+ sip="${1#*=}"
+ shift
+ ;;
+ --server)
+ mon_name="$2"
+ shift 2
+ ;;
+ --server=*)
+ mon_name="${1#*=}"
+ shift
+ ;;
+ --stateval)
+ state="$2"
+ shift 2
+ ;;
+ --stateval=*)
+ state="${1#*=}"
+ shift
+ ;;
+ --)
+ shift
+ break
+ ;;
-*) usage ;;
*) break ;;
esac