X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=myfai-chboot;h=db19cb63077d4555d6527546f670a614f515ac4a;hp=cbba8b5b97abe269d5e4b41b138e9b31fd1256aa;hb=9288ed79b53a9f276208c59bad353379b5e34914;hpb=527f50b38e4a94a771215131cafe016a97ba83cd diff --git a/myfai-chboot b/myfai-chboot index cbba8b5..db19cb6 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -33,6 +33,18 @@ 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 -- "$@"