15.as_root-install_obsdfreqd_and_disable_apmd.ksh 322 B

1234567891011121314151617181920212223242526
  1. #!/bin/ksh
  2. # script in https://tildegit.org/solene/obsdfreqd
  3. pkg_add obsdfreqd
  4. rcctl enable obsdfreqd
  5. rcctl stop apmd ; rcctl disable apmd
  6. {
  7. #!/bin/ksh
  8. daemon="/usr/local/sbin/obsdfreqd"
  9. . /etc/rc.d/rc.subr
  10. pexp="${daemon}.*"
  11. rc_reload=NO
  12. rc_bg=YES
  13. rc_cmd $1
  14. } >>/etc/rc.d/obsdfreqd
  15. rcctl start obsdfreqd