#!/bin/bash ETH_DEVICES=$(lliurex-net get_network_cards) #ETH_DEVICES=$(cat cards.output) for i in $ETH_DEVICES; do CURRENT_IP=$(lliurex-net get_current_ip $i) CURRENT_MASK=$(lliurex-net get_current_netmask $i) ROUTE=$(lliurex-net get_def_route) echo $i,$CURRENT_IP,$CURRENT_MASK,$ROUTE done