Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > afb1534ce899359a4c12d670416bb144 > scriptlet

lirc-0.9.0-2.fc14.i686.rpm

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