Commit a4e58559 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

iperf3 fix

parent 94f62976
...@@ -55,7 +55,7 @@ Login as root and type: ...@@ -55,7 +55,7 @@ Login as root and type:
**Running this utility on 3rd party Debian based distributions** **Running this utility on 3rd party Debian based distributions**
# Install dependencies # Install dependencies
apt install git qrencode psmisc curl bc expect rcconf dialog network-manager sunxi-tools iptables resolvconf debconf-utils unzip build-essential html2text apt-transport-https html2text dirmngr software-properties-common libpam-google-authenticator qrencode apt install git iperf3 qrencode psmisc curl bc expect rcconf dialog network-manager sunxi-tools iptables resolvconf debconf-utils unzip build-essential html2text apt-transport-https html2text dirmngr software-properties-common libpam-google-authenticator qrencode
git clone https://github.com/armbian/config git clone https://github.com/armbian/config
cd config cd config
......
...@@ -127,7 +127,10 @@ while true; do ...@@ -127,7 +127,10 @@ while true; do
DIALOG_CANCEL=1 DIALOG_CANCEL=1
DIALOG_ESC=255 DIALOG_ESC=255
# edit ip
LIST+=( "IP" "Select dynamic or edit static IP address" ) LIST+=( "IP" "Select dynamic or edit static IP address" )
# hostapd
HOSTAPDBRIDGE=$(cat /etc/hostapd.conf 2> /dev/null | grep -w "^bridge=br0") HOSTAPDBRIDGE=$(cat /etc/hostapd.conf 2> /dev/null | grep -w "^bridge=br0")
HOSTAPDSTATUS=$(service hostapd status 2> /dev/null | grep -w active | grep -w running) HOSTAPDSTATUS=$(service hostapd status 2> /dev/null | grep -w active | grep -w running)
if [[ -n "$HOSTAPDSTATUS" ]]; then if [[ -n "$HOSTAPDSTATUS" ]]; then
...@@ -139,14 +142,16 @@ while true; do ...@@ -139,14 +142,16 @@ while true; do
fi fi
if pgrep -x "iperf3" > /dev/null # network throughput test
then if check_if_installed iperf3; then
LIST+=( "Iperf3" "Disable network throughput tests daemon" ) if pgrep -x "iperf3" > /dev/null
else then
LIST+=( "Iperf3" "Enable network throughput tests daemon" ) LIST+=( "Iperf3" "Disable network throughput tests daemon" )
else
LIST+=( "Iperf3" "Enable network throughput tests daemon" )
fi
fi fi
if [[ -n $(LC_ALL=C nmcli device status | grep wifi | grep -v unavailable | grep -v unmanaged) ]]; then if [[ -n $(LC_ALL=C nmcli device status | grep wifi | grep -v unavailable | grep -v unmanaged) ]]; then
LIST+=( "WiFi" "Manage wireless networking" ) LIST+=( "WiFi" "Manage wireless networking" )
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment