diff --git a/network-config.sh b/network-config.sh index 14ce738..e0bb1ee 100755 --- a/network-config.sh +++ b/network-config.sh @@ -89,17 +89,19 @@ arrow_menu() { show_status() { clear echo "" - echo "╔══════════════════════════════════════════════════════════════════════════╗" - echo "║ Network Interface Status ║" - echo "╠══════════════════════════════════════════════════════════════════════════╣" - echo "║ ║" + echo " ╔══════════════════════════════════════════════════════════════════════════╗" + echo " ║ DAProgs HoneyPot Server 2303.3 ║" + echo " ╠══════════════════════════════════════════════════════════════════════════╣" + echo " ║ Network Interface Status ║" + echo " ╠══════════════════════════════════════════════════════════════════════════╣" + echo " ║ ║" local ifaces mapfile -t ifaces < <(get_interfaces) if [ ${#ifaces[@]} -eq 0 ]; then - echo "║ No interfaces found ║" - echo "║ ║" + echo " ║ No interfaces found ║" + echo " ║ ║" else for iface in "${ifaces[@]}"; do local ip netmask gw method @@ -118,15 +120,15 @@ show_status() { method="Unknown" fi - printf "║ Interface : %-20s Mode: %-10s ║\n" "$iface" "$method" - printf "║ IP Address: %-45s ║\n" "$ip" - printf "║ Netmask : %-45s ║\n" "$netmask" - printf "║ Gateway : %-45s ║\n" "$gw" - echo "║ ║" + printf " ║ Interface : %-20s Mode: %-10s ║\n" "$iface" "$method" + printf " ║ IP Address: %-45s ║\n" "$ip" + printf " ║ Netmask : %-45s ║\n" "$netmask" + printf " ║ Gateway : %-45s ║\n" "$gw" + echo " ║ ║" done fi - echo "╚══════════════════════════════════════════════════════════════════════════╝" + echo " ╚══════════════════════════════════════════════════════════════════════════╝" echo "" echo " Use ↑ ↓ to navigate, Enter to select, Ctrl+C to exit" echo ""