#!/bin/bash
# ------------------------------------------------------------------------------
# Copyright (c) 2014-2016 SUSE Linux GmbH, Nuernberg, Germany.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of version 2 of the GNU General Public License as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, contact SUSE Linux GmbH.
#
# ------------------------------------------------------------------------------
# cs_show_sbd_devices
#	display the system sbd devices
# Author: L.Pinne.
# Version: 2016-03-31

EXE="$0"

function help() {
	echo "usage: $(basename $0)"
	echo "usage: $(basename $0) OPTION"
	echo
	echo "OPTION:"
	echo " --help           show help."
	echo " --version        show version."
	echo
}


# function main()

case $1 in
	-v|--version)
		echo -n "$(basename $EXE) "
		head -11 $EXE | grep "^# Version: "
		exit
	;;
	-h|--help)
		help
		exit
	;;
	*)
		/usr/sbin/cs_make_sbd_devices -d
		exit $?
	;;
esac
#
