X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=myfai-chboot-local;h=9eac43f028325fe87e9d2860955dabde42841e5e;hp=8d4e1ce480bda868f8d3f8546cbe4cbb14963da8;hb=1728af7e3060c8608c622f210d6e16f7d085d8f9;hpb=c90a6fcdae53853a1e7d74dfcfa5d86cb7d81096 diff --git a/myfai-chboot-local b/myfai-chboot-local index 8d4e1ce..9eac43f 100755 --- a/myfai-chboot-local +++ b/myfai-chboot-local @@ -19,7 +19,7 @@ kernel=$(fai-chboot -L '^default$' | awk '{print $3}') # man page doesn't explain this, but this deletes & thus disables # all chboot systems. type -t host &>/dev/null || apt-get -y install dnsutils -gateway_ip=$(route -n | sed -rn 's/^(0\.){3}0\s+(\S+).*/\2/p') +gateway_ip=$(route -n | sed -rn 's/^0\.0\.0\.0\s+(\S+).*/\1/p') my_ip=$(host faiserver $gateway_ip | sed -rn 's/^\S+ has address //p') k_args=$(fai-chboot -L '^default$' | \ sed -r "s/^(\S+\s+){3}(.*root=)(.*)/\2$my_ip:\3/")