layer2interface: run grep silence

This commit is contained in:
Sukru Senli 2017-12-25 18:28:59 +01:00
parent 1cbe737ca8
commit 060ba67030
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ get_current_status() {
}
untagged_vlan_exists() {
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -w "$1" && return 0
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -qw "$1" && return 0
return 1
}

View file

@ -8,7 +8,7 @@ USE_PROCD=1
DEVICE_ADDED=0
vlan_exists() {
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -w "$1" && return 0
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -qw "$1" && return 0
return 1
}