summaryrefslogtreecommitdiffstats
path: root/net/tcfilter/files/tcfilter.hotplug-iface
blob: a22b3db51f0f837aa0ffbe20951ae5827bad6c82 (plain)
1
2
3
4
5
6
7
8
9
10
# SPDX-License-Identifier: GPL-2.0-only
# clsact filters are lost when the network is reconfigured; re-apply on ifup.
# 'start' is idempotent (rules already present are skipped), so repeated ifup
# events at boot are cheap.

[ "$ACTION" = "ifup" ] || exit 0
[ -x /etc/init.d/tcfilter ] || exit 0
[ -f /var/run/tcfilter.state ] || exit 0

/etc/init.d/tcfilter start