2009-05-10 17:52:04 +02:00
|
|
|
#
|
2009-12-11 12:07:29 +01:00
|
|
|
# This script creates required dirs for chroot initialization.
|
2009-05-10 17:52:04 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
case "${ACTION}" in
|
|
|
|
pre)
|
|
|
|
;;
|
|
|
|
post)
|
2009-05-11 02:28:50 +02:00
|
|
|
# Fix ntpd initialization with -i (chrooted).
|
|
|
|
if [ ! -d var/chroot/ntpd/var/db ]; then
|
|
|
|
mkdir -p var/chroot/ntpd/var/db
|
|
|
|
chown ntpd:ntpd /var/chroot/ntpd/var/db
|
|
|
|
fi
|
2009-05-10 17:52:04 +02:00
|
|
|
;;
|
|
|
|
esac
|