projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a8f55
)
make it easier to use netifd-proto.sh as a library
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Oct 2011 13:26:11 +0000
(15:26 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Oct 2011 13:26:11 +0000
(15:26 +0200)
dummy/netifd-proto.sh
patch
|
blob
|
history
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index 104edc7b6b55fad89c0f1504716daba288541244..2fbfd4e6d51985b0db2cbe43086514efb26e58e7 100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-38,9
+38,6
@@
_proto_do_setup() {
proto="$1"; shift
cmd="$1"; shift
-interface="$1"; shift
-data="$1"; shift
-ifname="$1"; shift
case "$cmd" in
dump)
@@
-61,7
+58,11
@@
case "$cmd" in
json_dump
}
;;
- *)
+ setup|teardown)
+ interface="$1"; shift
+ data="$1"; shift
+ ifname="$1"; shift
+
add_protocol() {
[[ "$proto" == "$1" ]] || return 0