X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=myfai-chboot-local;h=7dea8f2dbd174130a68da62ae2a44446e88f6338;hb=HEAD;hp=ca4d32ea4ba21b67fdd2190a9a680542442ed125;hpb=fd75a734a7149cf203553d36270482af37e680da;p=automated-distro-installer diff --git a/myfai-chboot-local b/myfai-chboot-local index ca4d32e..0f83ea0 100755 --- a/myfai-chboot-local +++ b/myfai-chboot-local @@ -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