attempted bug fix for dsfull
[automated-distro-installer] / wrt-setup-remote
index ccd96c4ee9f3f783ce48756dbe8831c2c8a03132..6e542ed1b34e0bcdc925a3248c1533b3e7f89825 100755 (executable)
@@ -1,11 +1,13 @@
 #!/bin/bash
 
 set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
+trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
+
+cd "${BASH_SOURCE%/*}"
 
 h=root@192.168.1.1
-scp /a/bin/fai/wrt-setup /a/bin/bash-programs-by-ian/repos/cedit/cedit $h:/usr/bin
-ssh $h <<'EOF'
+scp /a/bin/fai/wrt-setup /a/bin/cedit/cedit $h:/usr/bin
+ssh $h <<EOF
 if ! opkg list-installed|grep bash; then
     opkg update
     opkg install bash