mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
bugfixes found while migration on linkjunk
This commit is contained in:
parent
e96a2d02c4
commit
652754e62c
2 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,7 @@ source $VESTA/func/main.sh
|
|||
# Json function
|
||||
json_list_iface() {
|
||||
dev=$(cat /proc/net/dev |grep : |cut -f 1 -d : |tr -d ' ' |grep -v lo)
|
||||
int_counter=$(echo "$interfaces" | wc -l)
|
||||
int_counter=$(echo "$dev" | wc -l)
|
||||
i=1
|
||||
echo '['
|
||||
for interface in $dev; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue