diff options
author | Niko Mauno <niko.mauno@iki.fi> | 2019-11-26 22:14:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-04 12:30:58 +0000 |
commit | 05b20e95e1226a703656ac56115a022d01e4b1e5 (patch) | |
tree | 02463020fa26e8dd0cb5eab84972c81bcabbbf06 /meta/recipes-extended/iptables/iptables | |
parent | 567922d2fc7fbd0163bdafba1d6703ff296987ea (diff) | |
download | poky-05b20e95e1226a703656ac56115a022d01e4b1e5.tar.gz |
iptables: Allow overriding rules file location
In some cases a distribution may want to install rules file into a
location other than /etc/iptables/ so introduce custom recipe-level
IPTABLES_RULES_DIR parameter which allows conveniently overriding
the rules directory location.
(From OE-Core rev: 64eeedcdc586c221e3684861ba85e8e4bc9c5dd1)
Signed-off-by: Niko Mauno <niko.mauno@iki.fi>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/iptables/iptables')
-rw-r--r-- | meta/recipes-extended/iptables/iptables/iptables.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/iptables/iptables/iptables.service b/meta/recipes-extended/iptables/iptables/iptables.service index 041316e457..5a8aa3f298 100644 --- a/meta/recipes-extended/iptables/iptables/iptables.service +++ b/meta/recipes-extended/iptables/iptables/iptables.service | |||
@@ -5,8 +5,8 @@ Wants=network-pre.target | |||
5 | 5 | ||
6 | [Service] | 6 | [Service] |
7 | Type=oneshot | 7 | Type=oneshot |
8 | ExecStart=@SBINDIR@/iptables-restore /etc/iptables/iptables.rules | 8 | ExecStart=@SBINDIR@/iptables-restore @RULESDIR@/iptables.rules |
9 | ExecReload=@SBINDIR@/iptables-restore /etc/iptables/iptables.rules | 9 | ExecReload=@SBINDIR@/iptables-restore @RULESDIR@/iptables.rules |
10 | RemainAfterExit=yes | 10 | RemainAfterExit=yes |
11 | 11 | ||
12 | [Install] | 12 | [Install] |