...
 
Commits (3)
......@@ -51,6 +51,13 @@ clear_iface () {
setup_iface () {
gateway=$(ip route show 0.0.0.0/0 dev $USB_IFACE | cut -d\ -f3)
if [ "$gateway" = "" ]; then
echo "Error: no route available"
echo "Make sure your PC is configured correctly for usb networking"
exit 1
fi
echo "Your gateway is $gateway"
ndc network create 1
ndc network interface add 1 "$USB_IFACE"
......
......@@ -113,8 +113,6 @@ if [ $RECOVERY = true ] && [ -f $SCREEN_SIZE ]; then
exit 1
fi
$ADB root
if [ $RECOVERY = false ] && [ -f $SCREEN_SIZE ]; then
get_screen_size
fi
......