X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=wrt-setup;h=42c41276edaca12797746a3fbb69c6c4b1852029;hb=dcc5f68f7fbe9aa86cb3c7402ba4429bd70b369d;hp=c86a0d5e1b8d4da92af5b783f17e6602378ef109;hpb=845c2b9e9e7e25b3dfa3d7f750d0acae0e50caf4;p=automated-distro-installer diff --git a/wrt-setup b/wrt-setup index c86a0d5..42c4127 100755 --- a/wrt-setup +++ b/wrt-setup @@ -69,27 +69,13 @@ fi echo "$0: host=$h" cat ~/.ssh/home.pub | ssh $h dd of=/etc/dropbear/authorized_keys 2>/dev/null -scp /a/work/libremanage/libremanage /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin +scp /a/work/libremanage/libremanage /a/bin/fai/wrt-init /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin # relay is built for openwrt 18.06.2, r7676-cddd7b4c77 + +#/a/opt/openwrt/source/bin/packages/mips_24kc/mypackages/relay_1.0-1_mips_24kc.ipk \ + 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 \ /p/router-secrets /p/c/machine_specific/wrt/etc/wg.{key,psk} $h: scp ../openwrtkeyring/usign/* $h:/etc/opkg/keys -ssh $h </etc/opkg/customfeeds.conf <<'EOF' -src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07.3/packages/mips_24kc/packages -fi -EOF - -if ! opkg list-installed|grep bash; then - opkg update - opkg install bash -fi -export HOME_DOMAIN=$HOME_DOMAIN -wrt-setup-local $@ -EOFOUTER +ssh $h wrt-init $HOME_DOMAIN "$@"