You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
516 B
33 lines
516 B
#!/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
|
|
}
|
|
|
|
|