minor config changes
[automated-distro-installer] / wrt-setup
index 42c41276edaca12797746a3fbb69c6c4b1852029..db7f5c92ac4e7d94e23268148a0064e6bcd71d0b 100755 (executable)
--- a/wrt-setup
+++ b/wrt-setup
@@ -66,7 +66,7 @@ if [[ ! $h ]]; then
   esac
 fi
 
-echo "$0: host=$h"
+echo "$0: h=$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-init /a/bin/fai/wrt-setup-local /a/bin/cedit/cedit $h:/usr/bin
@@ -78,4 +78,4 @@ sudo scp /q/root/shadow/router /p/c/machine_specific/wrt/etc/dropbear/dropbear_r
      /p/router-secrets /p/c/machine_specific/wrt/etc/wg.{key,psk} $h:
 scp ../openwrtkeyring/usign/* $h:/etc/opkg/keys
 
-ssh $h wrt-init $HOME_DOMAIN "$@"
+ssh $h wrt-init ${HOME_DOMAIN:-b8.nz} "$@"