iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor: docs
[automated-distro-installer]
/
fai
/
config
/
class
/
10-base-classes
diff --git
a/fai/config/class/10-base-classes
b/fai/config/class/10-base-classes
index 3d03c8f54a5e0274edfd4f2be241a70a0a8413ab..e4408b658070e2e7911be2164446cc3f46eba9de 100755
(executable)
--- a/
fai/config/class/10-base-classes
+++ b/
fai/config/class/10-base-classes
@@
-5,9
+5,8
@@
if [ X$FAI_ACTION = Xinstall -a $do_init_tasks -eq 0 ]; then
exit 0
fi
exit 0
fi
-# 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
+# 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=
# determin if we are a DHCP client or not
# count the : chars in the argument of ip=