From fbd62cb9c7a6c15fa4a647b5d9802fd7be9b4467 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 26 Mar 2012 09:30:18 -0700 Subject: [PATCH] Add error checking and help to tool Signed-off-by: Steven Dake --- tools/openstack | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/openstack b/tools/openstack index d0e04644..f7909703 100755 --- a/tools/openstack +++ b/tools/openstack @@ -11,7 +11,14 @@ action=$1 if [ -z "$action" ] then - action="start" + echo "openstack [start|stop|install|erase]" + echo "" + echo "This tool is designed to control OpenStack on a Fedora 16/17 system" + echo "" + echo "start - Starts OpenStack" + echo "stop - Stops OpenStack" + echo "install - Installs a fresh OpenStack system with Keystone from your repos" + echo "erase - permanently destroys an existing installation of OpenStack" fi function os_start() { @@ -125,6 +132,8 @@ EOF } case $action in + "") + ;; start) os_start ;; @@ -138,7 +147,7 @@ case $action in os_install ;; *) - echo "no action $action" + echo "The action \"$action\" is not supported." ;; esac -- 2.45.2