#!/bin/sh -e ifconfig $1 > state/ifconfig-out cat state/ifconfig-out grep -q "flags=.*UP" state/ifconfig-out