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
329 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009-2011 OpenWrt.org
  3. # Copyright (C) 2011 Artem Makhutov
  4. START=49
  5. SERVICE_USE_PID=1
  6. start() {
  7. mkdir -m 0700 -p /var/racoon
  8. [ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
  9. service_start /usr/sbin/racoon -f /etc/racoon.conf
  10. }
  11. stop() {
  12. service_stop /usr/sbin/racoon
  13. }