27 lines
471 B
Bash
Executable File
27 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case $1 in
|
|
preinst)
|
|
exit 0
|
|
;;
|
|
postinst)
|
|
if [ ! -f ${TARGET}/var/log/btmp ]; then
|
|
install -v -m 600 /dev/null ${TARGET}/var/log/btmp
|
|
fi
|
|
if [ ! -f ${TARGET}/var/log/lastlog ]; then
|
|
install -v -m 664 /dev/null ${TARGET}/var/log/lastlog
|
|
fi
|
|
if [ ! -f ${TARGET}/var/log/wtmp ]; then
|
|
install -v -m 664 /dev/null ${TARGET}/var/log/wtmp
|
|
fi
|
|
;;
|
|
prerm)
|
|
exit 0
|
|
;;
|
|
postrm)
|
|
exit 0
|
|
;;
|
|
esac
|