base-files: apply new sysctl.conf at postinst
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 20 Jun 2019 10:29:53 +0000 (10:29 +0000)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:18:19 +0000 (13:18 +0200)
commit6e0bd490140fcdbf577cf35671bf68f537d19ecc
treeba7e1ccf076bebf47e5da551f9a5868a96994b73
parent97e52258d73abe2d9cd83ccf653a996e141b9046
base-files: apply new sysctl.conf at postinst

This is mainly for kmod-br-netfilter.  To turn off
bridge-netfilter-call-xxx immediately after installation

While at it

 - Define filelist="/usr/lib/opkg/info/${pkgname}.list"
 - Reuse "[ -z "$root" ]"
 - Grep with "-m1"

Fixes FS#2300

Reported-by: Marco Sartorius <tidbits@ormoorgmen.info>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3dc4f59eabaed5135cd4eed8d1846248d5f1b37c)
package/base-files/Makefile
package/base-files/files/lib/functions.sh