source: packages/net/stun/files/stund.init @ 14206

Last change on this file since 14206 was 14206, checked in by florian, 7 years ago

Add stun server and client

File size: 326 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2009 OpenWrt.org
3START=70
4
5start() {
6        config_load "6stund"
7
8        config_get PRIMIP primaryip
9        config_get SECIP secondaryip
10        config_get PRIMPORT primaryport
11        config_get SECPORT secondaryport
12
13        /usr/sbin/stund -b -h $PRIMIP -a $SECIP -p $PRIMPORT -o $SECPORT
14}
15
16stop() {
17        killall -9 stund
18}
Note: See TracBrowser for help on using the repository browser.