packages/net/pbr/files/etc/hotplug.d/firewall/70-pbr
2024-05-08 02:58:43 +08:00

7 lines
225 B
Bash
Executable File

#!/bin/sh
[ "$ACTION" = "reload" ] || [ "$ACTION" = "restart" ] || exit 0
if [ -x /etc/init.d/pbr ] && /etc/init.d/pbr enabled; then
logger -t "pbr" "Reloading pbr due to firewall action: $ACTION"
/etc/init.d/pbr reload
fi