Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > abfd36e1b07cea7d6b0dc5217aa0c2f1 > scriptlet

hal-0.5.8.1-64.el5.x86_64.rpm

PREIN

/bin/sh
# Add the "haldaemon" user
/usr/sbin/useradd -c 'HAL daemon' -u 68 \
	-s /sbin/nologin -r -d '/' haldaemon 2> /dev/null || :

PREUN

/bin/sh
if [ $1 = 0 ]; then
    service haldaemon stop > /dev/null 2>&1
    /sbin/chkconfig --del haldaemon
fi

POSTIN

/bin/sh
/sbin/ldconfig
/sbin/chkconfig --add haldaemon

POSTUN

/bin/sh
/sbin/ldconfig
#if [ "$1" -ge "1" ]; then
#  service haldaemon condrestart > /dev/null 2>&1
#fi

Triggers

hal < 0.5.7-3

/bin/sh
#remove lingering fstab-sync entries from /etc/fstab
/bin/cp -f /etc/fstab /etc/fstab.hal-save
(IFS="
"; while read line; do echo $line | awk '{print $4}' | grep -q managed || echo $line | grep -q "^#.*fstab-sync" || echo $line; done < /etc/fstab > fstab.replace)

if [ -s fstab.replace ]; then
  /bin/cp -f fstab.replace /etc/fstab
fi