Browse Source

small improvements in messaging of network device detection

Jaromil 2 years ago
parent
commit
5c978ec28a
1 changed files with 6 additions and 3 deletions
  1. 6 3
      zuper

+ 6 - 3
zuper

@@ -582,7 +582,10 @@ net.scan_devices() {
582 582
 
583 583
     # return error if no device found
584 584
     if [[ ${#net_devices} = 0 ]]; then return 1
585
-    else return 0; fi
585
+    else
586
+		act "${#net_devices} devices found: ${net_devices}"
587
+		return 0
588
+	fi
586 589
 }
587 590
 
588 591
 net.scan_addresses() {
@@ -604,13 +607,13 @@ net.scan_addresses() {
604 607
     done
605 608
 
606 609
     # list ipv4
607
-    notice "${#net_ip4_addr} ipv4 connected devices found"
610
+    act "${#net_ip4_addr} ipv4 connected devices found"
608 611
     for c in ${(k)net_ip4_addr}; do
609 612
         act " $c ${net_ip4_addr[$c]}"
610 613
     done
611 614
 
612 615
     # list ipv6
613
-    notice "${#net_ip6_addr} ipv6 connected devices found"
616
+    act "${#net_ip6_addr} ipv6 connected devices found"
614 617
     for c in ${(k)net_ip6_addr}; do
615 618
         act " $c ${net_ip6_addr[$c]}"
616 619
     done