PREUN
/bin/sh
if [ $1 -eq 0 ] ; then /etc/rc.d/init.d/lirc stop >/dev/null || : /sbin/chkconfig --del lirc || : fi
POSTIN
/bin/sh
/sbin/chkconfig --add lirc # If we're upgrading, move config files into their new location, if need be if [ $1 -ge 2 ] ; then if [ -e /etc/lircd.conf -a ! -e /etc/lirc/lircd.conf ]; then mv /etc/lircd.conf /etc/lirc/lircd.conf fi if [ -e /etc/lircmd.conf -a ! -e /etc/lirc/lircmd.conf ]; then mv /etc/lircmd.conf /etc/lirc/lircmd.conf fi fi