maybe with some kind of script ?
ive not tested this, just picking it off the top of my head.. but smthing like...
remmove network startup from the boot scrpts, and replace with a new script like so...
Code:
#!/bin/bash
while [ ! `dmesg | grep "eth0: link up"` = ""];
do
sleep 15
done
#replace next line with the comand to start network services.
/etc/init.d/net.eth0 start
This script (maybe with a little tweaking) will check to see if the network cable is pluged into a powered up router.
if it is not, it will sleep for 15 seconds then try again.
when the cable IS plugged in, and router is on, then it will start the network service.