improvements
[automated-distro-installer] / myfai-chboot-local
index ca4d32ea4ba21b67fdd2190a9a680542442ed125..0f83ea0a7bccfc2ed268d0e5a42d9360b43e53e9 100755 (executable)
@@ -111,7 +111,7 @@ if [[ $hostip ]]; then
     exit 1
   fi
 else
-  my_ip=$(ip r show default | sed -r 's/.*via ([^ ]*).*/\1/' | head -n1)
+  my_ip=$(ip r show default | sed -r 's/.*src ([^ ]*).*/\1/' | head -n1)
 fi
 
 if [[ $host == default ]]; then