Added hal-0.5.12rc1 template.

--HG--
extra : convert_revision : 8f3db664b145683fd8d5e52048fd890b49baa787
This commit is contained in:
Juan RP
2009-03-23 08:38:24 +01:00
parent 509f56a33e
commit e762dba18e
5 changed files with 118 additions and 0 deletions

24
templates/hal/INSTALL Normal file
View File

@@ -0,0 +1,24 @@
#
# This script creates the HAL system user/group.
#
case "$2" in
pre)
;;
post)
echo "Running $3-$4 post installation hooks..."
if ! chroot . getent group hal >/dev/null; then
chroot . groupadd -r hal
[ $? -ne 0 ] && exit $?
echo "Created HAL system group."
fi
if ! chroot . getent passwd hal >/dev/null; then
chroot . useradd -c "HAL daemon" \
-d / -s /sbin/nologin -g hal \
-G optical,floppy,storage -r hal && \
chroot . passwd -l hal &>/dev/null
[ $? -ne 0 ] && exit $?
echo "Created HAL system user."
fi
;;
esac