Index: iproute/setroute.sh
===================================================================
--- iproute/setroute.sh	(revision 8c804d83125c275fd3c5ef8e32b002e2f785a6b3)
+++ iproute/setroute.sh	(revision 84c2881946d389e9ef241cfbf7434d7dca598196)
@@ -29,4 +29,9 @@
 # get IP address, network mask, default gateway info
 IPADDR=`/sbin/ip addr show dev ${IFACE} | grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1`
+if [ -z ${IPADDR} ]; then
+    # fail to bind IP address to device
+    echo "${IFACE} has no IP address."
+    exit
+fi
 NETWORK=`/sbin/ip route show dev ${IFACE} | grep -w ${IPADDR} | cut -d ' ' -f 1`
 
