Signed-off-by: Martin Schwenke <martin@meltin.net>
prog="ctdb"
+not_implemented_exit_code=1
+
usage ()
{
cat >&2 <<EOF
Note that -Y is ignored.
EOF
- exit 1
+ exit $not_implemented_exit_code
}
-# $POSIXLY_CORRECT means that the command passed to onnode can take
-# options and getopt won't reorder things to make them options to this
-# script.
+# Don't set $POSIXLY_CORRECT here.
_temp=$(getopt -n "$prog" -o "Yvh" -l help -- "$@") || \
usage
mkdir -p "$pstore_dir"
}
+# For testing backward compatibility...
+for i in $CTDB_NOT_IMPLEMENTED ; do
+ if [ "$i" = "$1" ] ; then
+ usage
+ fi
+done
+
case "$1" in
ip)
# NOTE: all nodes share the same public addresses file.