summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-24 09:42:17 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-10-19 17:31:56 +0200
commitbdb28375d9872a49f7008fbdf2d8a1fad3790344 (patch)
treed19e3fbe117226b159dc97a953c95986f1b04008 /examples
parentc8e879595400e3485b5a075797290a1061c0b04f (diff)
downloadnetifd-bdb28375d9872a49f7008fbdf2d8a1fad3790344.tar.gz
scripts: move some utility functions out of netifd-proto.sh into utils.sh
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/proto/ppp.sh4
-rwxr-xr-xexamples/proto/pptp.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/proto/ppp.sh b/examples/proto/ppp.sh
index f0d0ca3..4750f40 100755
--- a/examples/proto/ppp.sh
+++ b/examples/proto/ppp.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-DUMMY=1
-. ../../scripts/netifd-proto.sh
+NETIFD_MAIN_DIR=../../scripts
+. $NETIFD_MAIN_DIR/netifd-proto.sh
init_proto "$@"
diff --git a/examples/proto/pptp.sh b/examples/proto/pptp.sh
index 5189e95..7c8a13d 100755
--- a/examples/proto/pptp.sh
+++ b/examples/proto/pptp.sh
@@ -1,5 +1,7 @@
#!/bin/sh
-. ../../scripts/netifd-proto.sh
+NETIFD_MAIN_DIR=../../scripts
+. $NETIFD_MAIN_DIR/netifd-proto.sh
+
init_proto "$@"
proto_pptp_init_config() {