You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
442 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009-2011 OpenWrt.org
  3. # Copyright (C) 2011 Artem Makhutov
  4. # Copyright (C) 2014 Noah Meyerhans <frodo@morgul.net>
  5. USE_PROCD=1
  6. START=49
  7. start_service() {
  8. mkdir -m 0700 -p /var/racoon
  9. [ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
  10. procd_open_instance
  11. procd_set_param command /usr/sbin/racoon -F -f /etc/racoon.conf
  12. procd_set_param respawn
  13. procd_close_instance
  14. }