X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=myfai-chboot;h=308b1c70a04e317cb47e1aeacdefbc831d2c4426;hp=1abead8c5922a7feb7bcc1df6c1adcbf9b4e9841;hb=6ca069946c8ff88d79d1ae421e0eda60ae1c514c;hpb=708c79e5611549280b988c607e1a1a19fc63e991 diff --git a/myfai-chboot b/myfai-chboot index 1abead8..308b1c7 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -3,17 +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 -- "$@"