aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-01-04 18:40:14 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-01-04 18:41:18 +0100
commit850c212c8981b5f33299ac34df718336d6645064 (patch)
treeaedeb836fba411f3aa269400d3c2b62f70ae0e76
parentbaac70b009752d81c63c7b39f44bfc98b55ec60e (diff)
downloadaports-850c212c8981b5f33299ac34df718336d6645064.tar.bz2
aports-850c212c8981b5f33299ac34df718336d6645064.tar.xz
main/nftables: fix init script's checkconfig to actually run check
-rw-r--r--main/nftables/APKBUILD4
-rw-r--r--main/nftables/nftables.initd5
2 files changed, 4 insertions, 5 deletions
diff --git a/main/nftables/APKBUILD b/main/nftables/APKBUILD
index 16c9a8b58a..00cdda23aa 100644
--- a/main/nftables/APKBUILD
+++ b/main/nftables/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nftables
pkgver=0.9.3
-pkgrel=3
+pkgrel=4
pkgdesc="Netfilter tables userspace tools"
url="https://netfilter.org/projects/nftables"
arch="all"
@@ -57,5 +57,5 @@ package() {
sha512sums="d264f6fc75c95510e29fe7d5b82ae418d502f40437b098ba6117ffb1374d9989d70a7296e2e58c5fb25142145a987bb9c160902637899f892589809f9541db43 nftables-0.9.3.tar.bz2
cca875473bbd7b2326afcaeec84b1f9826afb70fc67381a64f3ad104a13a314bd2c352e0fac1f602b9980edb2818bf6242373aa1634ce17bcc1d82eeb8b05b39 nftables.confd
-8bb5781fcccf64c6fd074c5fccf8a4aa93b7cb69fc8e58c6cf359e2367a6627e9cf616df1e8bf80171b09f4a9aab1b7296e2edfda0dac138c1cc6201b8d2da8b nftables.initd
+4430d732bf8aa468e9a2799c9cf6533f1833a8ae1f4e527d3c6e907055e5b603cfda0a6f34fdee914aa6605bb265736dc233dec3963d07112439d75f1301dc8c nftables.initd
059e0920517ff9f9c564bdfda6a06e8392a2755c01f8d0331a8577fd027713948d3f1e2cbe9da5077870181dc9e425d8c69e4c82ea6ee261fced4ab61aff3ad4 nftables.nft"
diff --git a/main/nftables/nftables.initd b/main/nftables/nftables.initd
index 62d0e8496e..cdaa0d7640 100644
--- a/main/nftables/nftables.initd
+++ b/main/nftables/nftables.initd
@@ -103,11 +103,10 @@ stop() {
checkconfig() {
if [ ! -f "$rules_file" ]; then
- eerror "Not starting nftables. First create some rules then run:"
- eerror " rc-service nftables save"
+ eerror "Rules files $rules_file does not exist!"
return 1
fi
- return 0
+ nft -c -f "$rules_file"
}
checkkernel() {