Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 55e9100b587d29e683c76ff332e11866 > scriptlet

arm4-0.8.2-5.fc12.i686.rpm

PREIN

/bin/sh
# Add the arm4 user and group
getent group arm4 >/dev/null || groupadd -r arm4
getent passwd arm4 >/dev/null || \
	useradd -r -g arm4 -d /var/lib/arm4 -s /sbin/nologin \
	-c "ARM 4 Daemon" arm4
exit 0

PREUN

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

POSTIN

/bin/sh
/sbin/ldconfig

# Register the arm4 service
/sbin/chkconfig --add arm4