X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=myfai-chboot;h=db19cb63077d4555d6527546f670a614f515ac4a;hb=9288ed79b53a9f276208c59bad353379b5e34914;hp=0d036b9160749f23f4bb237ed280f78f192e0371;hpb=c47175685b348735b3440e16851dde2cc39b6f3f;p=automated-distro-installer diff --git a/myfai-chboot b/myfai-chboot index 0d036b9..db19cb6 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -29,13 +29,22 @@ to disable the nfs server. EOF exit $1 } -if [[ ! $1 ]]; then - usage 1 -fi case $1 in -h|--help) usage ;; esac +kgped16=false # default +temp=$(getopt -l help hk "$@") || usage 1 +eval set -- "$temp" +while true; do + case $1 in + -k) kgped16=true; shift ;; + -h|--help) usage ;; + --) shift; break ;; + *) echo "$0: Internal error! unexpected args: $*" ; exit 1 ;; + esac +done + host=$(./chost faiserver) ssh root@$host bash -s -- "$@"