base-files: apply new sysctl.conf at postinst
authorYousong Zhou <[email protected]>
Thu, 20 Jun 2019 10:29:53 +0000 (10:29 +0000)
committerYousong Zhou <[email protected]>
Fri, 21 Jun 2019 03:29:20 +0000 (03:29 +0000)
commit3dc4f59eabaed5135cd4eed8d1846248d5f1b37c
treee44998ed5ef1650342dd95647cde17b57b4d229e
parenta8f0c02f80fa0c7c55702770b3ca99f6db5405e7
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 <[email protected]>
Signed-off-by: Yousong Zhou <[email protected]>
package/base-files/Makefile
package/base-files/files/lib/functions.sh