tlp.initd 575 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2015 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: $
  5. description="TLP start/stop actions"
  6. depend() {
  7. after modules
  8. # sysfs is required (bat thresholds); localmount:/usr
  9. need sysfs localmount
  10. # thinkpad-radiosw (USE=deprecated)
  11. use acpid
  12. after NetworkManager dbus bluetooth
  13. # run after xdm to avoid bluetooth/wwan/... race-condition with gdm
  14. after xdm
  15. }
  16. start() { /usr/bin/tlp init start; }
  17. stop() { /usr/bin/tlp init stop; }
  18. restart() { /usr/bin/tlp init restart; }