Browse Source

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>
lilik-openwrt-22.03
Nick Hainke 3 years ago
committed by Polynomdivision
parent
commit
f7cb8b20e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/wg-installer/wg-server/lib/wg_functions.sh

+ 1
- 1
net/wg-installer/wg-server/lib/wg_functions.sh View File

@ -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)


Loading…
Cancel
Save