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

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