projects
/
openwrt-github
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
netifd: update to the latest version, contains several fixes, including one for inter...
[openwrt-github/.git]
/
package
/
network
/
config
/
netifd
/
files
/
sbin
/
ifstatus
1
#!/bin/sh
2
INTERFACE="$1"
3
4
[ -n "$INTERFACE" ] || {
5
echo "Usage: $0 <interface>"
6
exit 1
7
}
8
9
ubus -S list "network.interface.$INTERFACE" >/dev/null || {
10
echo "Interface $INTERFACE not found"
11
exit 1
12
}
13
ubus call network.interface status "{ \"interface\" : \"$INTERFACE\" }"