First check in

This commit is contained in:
2016-10-24 07:13:32 -05:00
commit ad281eae64
7 changed files with 155 additions and 0 deletions

3
SNAP/README Normal file
View File

@@ -0,0 +1,3 @@
This is the directory where the manifest, snapinfo, and files.tar.gz
files will be created. It is also where the usher file should be
placed if it is required by the package.

29
SNAP/usher Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -e
CONF="auth,authpriv.* -/var/log/auth.log
*.*;auth,authpriv.none -/var/log/sys.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
#*.emerg *
*.emerg -/var/log/kern.log"
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f ${TARGET}/etc/syslog.conf ]; then
echo "${CONF}" > ${TARGET}/etc/syslog.conf
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac