- if /sbin/ifconfig $ETH_DEVICE >& /dev/null; then
- verbose-message "pl_netinit: device present $ETH_DEVICE, proceeding (${COUNTER}s/${ALLOW}s)"
- break
+ ### check if the interface is known
+ # instead of using ifconfig, check the kernel area
+ if [ -e /sys/class/net/$ETH_DEVICE ]; then
+ verbose-message "pl_netinit: device present $ETH_DEVICE"
+ break