# 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
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
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