mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
wg-installer: fix get_usage function
The get_usage function always returns 0. The shell syntax was wrong. Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
committed by
Polynomdivision
parent
c8f577ca4a
commit
f7cb8b20e1
@@ -2,7 +2,7 @@
|
||||
. /usr/share/wginstaller/wg.sh
|
||||
|
||||
wg_get_usage () {
|
||||
num_interfaces = $(wg show interfaces | wc -w)
|
||||
num_interfaces=$(wg show interfaces | wc -w)
|
||||
json_init
|
||||
json_add_int "num_interfaces" $num_interfaces
|
||||
echo $(json_dump)
|
||||
|
||||
Reference in New Issue
Block a user