mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-11 03:28:36 +01:00
layer2interface: run grep silence
This commit is contained in:
parent
1cbe737ca8
commit
060ba67030
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue