diff options
Diffstat (limited to 'package/pptp/files')
-rw-r--r-- | package/pptp/files/pptp.init | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/pptp/files/pptp.init b/package/pptp/files/pptp.init new file mode 100644 index 0000000000..024b8ceea2 --- /dev/null +++ b/package/pptp/files/pptp.init @@ -0,0 +1,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 +} + |