From b9a0d7065b7054a16181948161728192ec675608 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 12 Sep 2021 10:55:43 +0200 Subject: [PATCH] network_functions: fix _get_wireless_status function the function has returned the number of lines instead of the output itself. Signed-off-by: Arne Fitzenreiter --- config/cfgroot/network-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/network-functions.pl b/config/cfgroot/network-functions.pl index c0abc76b52..d503228231 100644 --- a/config/cfgroot/network-functions.pl +++ b/config/cfgroot/network-functions.pl @@ -360,7 +360,7 @@ sub _get_wireless_status($) { my $intf = shift; if (!$wireless_status{$intf}) { - $wireless_status{$intf} = &General::system_output("iwconfig", "$intf"); + $wireless_status{$intf} = join('\n', &General::system_output("iwconfig", "$intf")); } return $wireless_status{$intf}; -- 2.39.5