base-files: apply new sysctl.conf at postinst
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 20 Jun 2019 10:29:53 +0000 (10:29 +0000)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:51:42 +0000 (15:51 -0400)
commitd8e10185cbdc5e3a12b6ae2b75b8e761d30155e4
treedf6ef6e1743022cecf83d5889075c2224ec39eb1
parent9af15b1ccf6ff780df5f5a262d1c5ec0c19fce55
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