X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F10-base-classes;h=e4408b658070e2e7911be2164446cc3f46eba9de;hb=723056c40d38694c14d9bcb6b4a3108f7054a2a1;hp=eed0846e2e8f47971a78361847abc0f6280cc1d6;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/class/10-base-classes b/fai/config/class/10-base-classes index eed0846..e4408b6 100755 --- a/fai/config/class/10-base-classes +++ b/fai/config/class/10-base-classes @@ -1,8 +1,12 @@ #! /bin/bash -# Echo architecture and OS name in uppercase. Do NOT remove these two lines. -uname -s | tr '[:lower:]' '[:upper:]' -[ -x "`which dpkg`" ] && dpkg --print-architecture | tr a-z A-Z +# do only execute if this is called on the client being installed. Do not use during fai-diskimage +if [ X$FAI_ACTION = Xinstall -a $do_init_tasks -eq 0 ]; then + exit 0 +fi + +# Echo architecture +command -v dpkg >&/dev/null && dpkg --print-architecture | tr a-z A-Z # determin if we are a DHCP client or not # count the : chars in the argument of ip=