mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 06:29:43 +02:00
6772ab104f
/etc/init.d/ppp automatically starts pptp session on boot., from #6720 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20221 3c298f89-4303-0410-b956-a3cf2f4a3e73
34 lines
516 B
Bash
34 lines
516 B
Bash
#!/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
|
|
}
|
|
|