Blame tests/p_network/network_device_test.sh

Athmane Madjoudj a3e79f
#!/bin/sh
Athmane Madjoudj a3e79f
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj a3e79f
Athmane Madjoudj a3e79f
t_Log "Running $0 - Check if a least one network device is available."
Athmane Madjoudj a3e79f
d033e2
ifconfig | grep -q ether
d033e2
d033e2
export eth_int=$(ip addr|grep -B 1 "link/ether"|head -n 1|awk '{print $2}'|tr -d ':')
Athmane Madjoudj a3e79f
Athmane Madjoudj a3e79f
t_CheckExitStatus $?