* The makefile produces the nft and iptables capable `pbr` package and the `pbr-iptables` package for legacy setups * This replaces `vpnbypass` and `vpn-policy-routing` packages * I'm soliciting feedback on this package and my intention is to update the version to 1.0.0 before this is merged, but I need the feedback on this and luci-app-pbr before then. Signed-off-by: Stan Grishin <stangri@melmac.ca>
8 lines
352 B
Bash
8 lines
352 B
Bash
#!/bin/sh
|
|
# shellcheck disable=SC1091,SC3060
|
|
[ -s /etc/openwrt_release ] && . /etc/openwrt_release
|
|
[ "${DISTRIB_RELEASE//19.07}" = "$DISTRIB_RELEASE" ] && exit 0
|
|
if [ -x /etc/init.d/pbr ] && /etc/init.d/pbr enabled; then
|
|
logger -t pbr "Reloading pbr $INTERFACE due to $ACTION of $INTERFACE ($DEVICE)"
|
|
/etc/init.d/pbr reload_interface "$INTERFACE"
|
|
fi
|