hostapd.initd 555 B

12345678910111213141516171819202122
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2006 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.6.9-init.d,v 1.2 2009/05/17 10:18:18 gurligebis Exp $
  5. command="/usr/bin/hostapd"
  6. command_args="-B ${OPTIONS} ${CONFIGS}"
  7. extra_started_commands="reload"
  8. required_files="$CONFIGS"
  9. depend() {
  10. need net
  11. after firewall
  12. use logger
  13. }
  14. reload() {
  15. ebegin "Reloading ${SVCNAME} configuration"
  16. kill -HUP $(pidof /usr/bin/hostapd) > /dev/null 2>&1
  17. eend $?
  18. }