#!/bin/sh # # Wait for raspberry2 ethernet module to be ready # before starting the network # case "$1" in start) while [ ! -d /sys/class/net/eth0 ]; do echo "Waiting for eth0 module..." sleep 1 done ;; esac