summaryrefslogtreecommitdiffhomepage
path: root/dummy
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-14 22:45:21 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-14 22:45:21 +0200
commit3d49dba94c7a2ebaa8626acf81ca74a22c7784f7 (patch)
treefb67402016cf5ef8245d6c029e811405fb6b1cfe /dummy
parentc1726af17577aa606715ee6bed6d18fc2c5c636c (diff)
add a command for allowing the setup task to schedule a restart
Diffstat (limited to 'dummy')
-rwxr-xr-xdummy/netifd-proto.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index a38f9d9..365c433 100755
--- a/dummy/netifd-proto.sh
+++ b/dummy/netifd-proto.sh
@@ -296,6 +296,13 @@ proto_add_host_dependency() {
_proto_notify "$interface" -S
}
+proto_setup_failed() {
+ local interface="$1"
+ json_init
+ json_add_int action 7
+ _proto_notify "$interface"
+}
+
init_proto() {
proto="$1"; shift
cmd="$1"; shift