X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=myfai-chboot;h=308b1c70a04e317cb47e1aeacdefbc831d2c4426;hp=e216aa077e0e9afe19b0fc572e173c4e55afa43e;hb=bfd6bbd3a188aac6871f8b5e1116a0979682d52b;hpb=d6df8985152a6c17523cedc3fee62694544eeaf2 diff --git a/myfai-chboot b/myfai-chboot index e216aa0..308b1c7 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -3,16 +3,44 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR +x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*} usage() { - cat <<'EOF' -usage $0 [hostname|ip|default]... + cat </dev/null; then + ./myfai-chboot-local "$@" +else + ssh root@$host bash -s -- "$@"