summaryrefslogtreecommitdiff
path: root/package/pptp/files/pptp.init
blob: 024b8ceea27cc271e0319b9dd20384a6295b38c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=41
STOP=30

updown_pptp_interface () {
	config_get proto "$1" proto
	if [ "$proto" = "pptp" ]; then
		if$2 "$1"	
	fi
}

boot () {
	start
}

start() {
	config_load network
	config_foreach updown_pptp_interface interface up
}

restart() {
	config_load network
	config_foreach updown_pptp_interface interface down
	config_foreach updown_pptp_interface interface up
}

stop() {
	config_load network
	config_foreach updown_pptp_interface interface down
}