c8a6b91ba1
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28911 3c298f89-4303-0410-b956-a3cf2f4a3e73
18 lines
329 B
Bash
18 lines
329 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
|
# Copyright (C) 2011 Artem Makhutov
|
|
|
|
START=49
|
|
|
|
SERVICE_USE_PID=1
|
|
|
|
start() {
|
|
mkdir -m 0700 -p /var/racoon
|
|
[ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
|
|
service_start /usr/sbin/racoon -f /etc/racoon.conf
|
|
}
|
|
|
|
stop() {
|
|
service_stop /usr/sbin/racoon
|
|
}
|