X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=wrt-setup;h=9ac518afca061bf9f20a3928eb4c557f26f2e25e;hb=d4f7a9349a08f60957ca544f3d68a9b97015f6b9;hp=3e71ef5099816bcdc45dd6b76785008ce0ea5819;hpb=2ee7b55c3811815cdec75025cefa94918cf99ba7;p=automated-distro-installer diff --git a/wrt-setup b/wrt-setup index 3e71ef5..9ac518a 100755 --- a/wrt-setup +++ b/wrt-setup @@ -23,44 +23,41 @@ x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*} usage() { cat < 1 )); then - usage 1 -fi - -if [[ $# == 1 ]]; then - read h <<<"$@" -fi +echo "$0: host=$h" cat ~/.ssh/home.pub | ssh $h dd of=/etc/dropbear/authorized_keys 2>/dev/null -scp /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin -# build for openwrt 18.06.2, r7676-cddd7b4c77 -scp /a/opt/openwrt/source/bin/packages/mips_24kc/mypackages/relay_1.0-1_mips_24kc.ipk $h: +scp /a/work/libremanage/libremanage /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin +# relay is built for openwrt 18.06.2, r7676-cddd7b4c77 +sudo scp /q/root/shadow/router /p/c/machine_specific/wrt/etc/dropbear/dropbear_rsa_host_key \ + /a/opt/openwrt/source/bin/packages/mips_24kc/mypackages/relay_1.0-1_mips_24kc.ipk $h: ssh $h <