The following changes were made:

* Added default sysctl.conf
  * Added usher to manage sysctl.conf
  * Added /etc/sysctl.d
This commit is contained in:
2017-05-16 19:30:24 -05:00
parent b78f98e689
commit 0095f3d0cd
3 changed files with 36 additions and 1 deletions

10
SNAP/sysctl.conf Normal file
View File

@@ -0,0 +1,10 @@
# Configuration for kernel values in /proc/sys
# See sysctl.conf (5) for details
# The four values in printk denote: console_loglevel,
# default_message_loglevel, minimum_console_loglevel and
# default_console_loglevel respectively.
#kernel.printk = 3 4 1 3
# Setting the following to 1 will disable ipv6
#net.ipv6.conf.all.disable_ipv6 = 1

20
SNAP/usher Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f ${TARGET}/etc/sysctl.conf ]; then
cp ${TARGET}/usr/share/procps-ng/sysctl.conf ${TARGET}/etc/sysctl.conf
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac