2009-03-23 08:38:24 +01:00
|
|
|
#
|
2009-12-11 12:07:07 +01:00
|
|
|
# This script creates some required dirs.
|
2009-03-23 08:38:24 +01:00
|
|
|
#
|
|
|
|
|
2009-04-08 03:24:57 +02:00
|
|
|
case "${ACTION}" in
|
2009-03-23 08:38:24 +01:00
|
|
|
pre)
|
|
|
|
;;
|
|
|
|
post)
|
2009-05-07 14:01:56 +02:00
|
|
|
# Create some required dirs if don't exist.
|
2009-05-07 13:22:53 +02:00
|
|
|
if [ ! -d var/run/hald ]; then
|
|
|
|
mkdir -p var/run/hald
|
|
|
|
chown hal:hal var/run/hald
|
|
|
|
fi
|
|
|
|
if [ ! -d var/cache/hald ]; then
|
|
|
|
mkdir -p var/cache/hald
|
|
|
|
fi
|
2009-03-23 08:38:24 +01:00
|
|
|
;;
|
|
|
|
esac
|