package/block-mount: mark /etc/config/fstab as conffiles (closes: #7130)
[openwrt.git] / package / pptp / files / pptp.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=41
5 STOP=30
6
7 updown_pptp_interface () {
8 config_get proto "$1" proto
9 if [ "$proto" = "pptp" ]; then
10 if$2 "$1"
11 fi
12 }
13
14 boot () {
15 start
16 }
17
18 start() {
19 config_load network
20 config_foreach updown_pptp_interface interface up
21 }
22
23 restart() {
24 config_load network
25 config_foreach updown_pptp_interface interface down
26 config_foreach updown_pptp_interface interface up
27 }
28
29 stop() {
30 config_load network
31 config_foreach updown_pptp_interface interface down
32 }
33
This page took 0.046954 seconds and 5 git commands to generate.