X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=wrt-setup;h=4be2e41a9c905f3c46130a5ff511bbbf61b559c0;hp=d721f6ad36aa3d976e75add20920bb55f4953ec9;hb=2028560d2467b5bbb3893b00369f123c90ef7282;hpb=bacafbabe07c9edc86eaa75c24887d6fac0c310a diff --git a/wrt-setup b/wrt-setup index d721f6a..4be2e41 100755 --- 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