source: packages/net/ipsec-tools/files/racoon.init @ 28102

Last change on this file since 28102 was 28102, checked in by florian, 5 years ago

[package] ipsec-tools: update to 0.8.0, add init script

Signed-off-by: Artem Makhutov <artem@…>

File size: 257 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2009 OpenWrt.org
3START=49
4# Copyright (C) 2011 Artem Makhutov
5
6start() {
7        setkey -f /etc/ipsec.conf
8        mkdir /var/racoon/
9
10        /usr/sbin/racoon -f /etc/racoon/racoon.conf
11}
12
13stop() {
14        killall racoon
15        killall racoonctl
16}
17
Note: See TracBrowser for help on using the repository browser.