iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fixes
[automated-distro-installer]
/
myfai-chboot
diff --git
a/myfai-chboot
b/myfai-chboot
index d0c0a97323d89d02d9b7da9748f5b1d4ad0235c2..de798e4d1afc0db0a8d0bd6c6421c423e00ed682 100755
(executable)
--- a/
myfai-chboot
+++ b/
myfai-chboot
@@
-6,8
+6,8
@@
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*}
usage() {
x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*}
usage() {
-
cat <<EOF
-usage: ${0##*/} [-h|--help]
[hostname|ip]
+ cat <<EOF
+usage: ${0##*/} [-h|--help]
HOSTNAME|IP|default
Sets up tftp pxe config and nfs server on host "faiserver".
Sets up tftp pxe config and nfs server on host "faiserver".
@@
-27,10
+27,13
@@
to disable the nfs server.
-h|--help Print help and exit.
EOF
-h|--help Print help and exit.
EOF
-
exit $1
+ exit $1
}
}
+if [[ ! $1 ]]; then
+ usage 1
+fi
case $1 in
case $1 in
-
-h|--help) usage ;;
+ -h|--help) usage ;;
esac
esac