post_install() {
  add_service.sh powernowd

  echo "Be sure to modprobe the proper module for your CPU and then add it
  echo "to /etc/rc.conf in the MODULES section."
  echo "i.e. for a Core2Duo modprobe/add acpi_cpufreq"
  echo "Then restart the powernowd service: sudo sv restart powernowd"
}

post_upgrade() {
  echo "Be sure to modprobe the proper module for your CPU and then add it
  echo "to /etc/rc.conf in the MODULES section."
  echo "i.e. for a Core2Duo modprobe/add acpi_cpufreq"
  echo "Then restart the powernowd service: sudo sv restart powernowd"
}

pre_remove() {
  remove_service.sh powernowd
}