minor updates
[automated-distro-installer] / wrt-setup
index d721f6ad36aa3d976e75add20920bb55f4953ec9..4be2e41a9c905f3c46130a5ff511bbbf61b559c0 100755 (executable)
--- a/wrt-setup
+++ b/wrt-setup
@@ -15,7 +15,9 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
-x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
+set -eE -o pipefail
+trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
+
 
 pmirror() {
     # background: upgrading all packages is not recommended because it
@@ -173,7 +175,7 @@ config 'route' 'transmission'
         option 'interface' 'lan'
         option 'target' '10.173.0.0'
         option 'netmask' '255.255.0.0'
-        option 'gateway' '192.168.1.2'
+        option 'gateway' '192.168.1.3'
 EOF
 
 v cedit /etc/config/firewall <<'EOF' || firewall_restart=true
@@ -214,14 +216,14 @@ config rule
 
 config redirect
     option src              wan
-    option src_dport        1194
+    option src_dport        1196
     option dest             lan
     option dest_ip          192.168.1.2
     option proto            udp
 config rule
     option src              wan
     option target           ACCEPT
-    option dest_port        1194
+    option dest_port        1196
     option proto            udp