X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fmkcompile_h;h=50ad317a4bf9b41bc62d074ee8bd19a9864ffda6;hb=HEAD;hp=23dbad80cce9e16ce885d61163a5f79c1ca2b981;hpb=d6cf853d4d73c268fc8920ac4e812ee26a12847c;p=mv-sheeva.git diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index 23dbad80cce..50ad317a4bf 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -67,9 +67,8 @@ UTS_TRUNCATE="cut -b -$UTS_LEN" echo \#define LINUX_COMPILE_BY \"`whoami`\" echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\" - if [ -x /bin/dnsdomainname ]; then - domain=`dnsdomainname 2> /dev/null` - elif [ -x /bin/domainname ]; then + domain=`dnsdomainname 2> /dev/null` + if [ -z "$domain" ]; then domain=`domainname 2> /dev/null` fi