summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto/ppp.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-12 16:11:49 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-12 16:11:49 +0200
commit10c7565766962a876844c71dd3a230aefeaf193b (patch)
tree0c0ffebcd47d033046d13d8d4ea96e8144d74caf /dummy/proto/ppp.sh
parentab98d23a5c70c77fce399a95741644a894d0905a (diff)
add support for launching a long running command from a proto-shell handler that keeps the connection running. bring down the interface if that command dies
Diffstat (limited to 'dummy/proto/ppp.sh')
-rwxr-xr-xdummy/proto/ppp.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index adce2ca..13c4ebb 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -39,6 +39,7 @@ pppoe_setup() {
proto_init_update ppp0 1
proto_add_ipv4_address "192.168.2.1" 32
proto_send_update "$1"
+ proto_run_command sleep 10
}
pppoe_teardown() {