#!/bin/sh

[ -z  "$2" ] && gtk-update-icon-cache -f /usr/share/icons/hicolor

chmod a+x /etc/init.d/apmonitord

if [ -x "/etc/init.d/apmonitord" ]; then
  update-rc.d apmonitord start 60 2 3 5 . stop 20 0 6 . >/dev/null
  if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
    invoke-rc.d apmonitord start || exit $?
  else
    /etc/init.d/apmonitord start || exit $?
  fi
fi

exit 0
