Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 0dbac063c85179874281b7781b38e44e > scriptlet

arm4-0.8.2-5.fc12.x86_64.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