aboutsummaryrefslogtreecommitdiff
path: root/class
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2017-09-12 16:20:45 +0300
committerRiku Voipio <riku.voipio@linaro.org>2017-09-12 16:20:45 +0300
commitb88be690c7393075e5b24f8af245fd7197ee584e (patch)
treec2dedfb2fb9e3b58b78f2eefcd7c3386eccc9453 /class
downloadfai-b88be690c7393075e5b24f8af245fd7197ee584e.tar.gz
Initial linaro test
Diffstat (limited to 'class')
-rwxr-xr-xclass/10-base-classes16
-rw-r--r--class/BUSTER.var2
-rw-r--r--class/DEBIAN.var5
-rw-r--r--class/INSTALL.var1
-rw-r--r--class/SID.var2
-rw-r--r--class/STRETCH.var2
6 files changed, 28 insertions, 0 deletions
diff --git a/class/10-base-classes b/class/10-base-classes
new file mode 100755
index 0000000..eed0846
--- /dev/null
+++ b/class/10-base-classes
@@ -0,0 +1,16 @@
+#! /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
+
+# determin if we are a DHCP client or not
+# count the : chars in the argument of ip=
+n="${ip//[^:]}"
+if [[ $ip =~ ^(on|any|dhcp)$ ]]; then
+ echo DHCPC
+elif [ ${#n} -lt 6 ]; then
+ echo DHCPC
+fi
+
+exit 0
diff --git a/class/BUSTER.var b/class/BUSTER.var
new file mode 100644
index 0000000..a3d6fe3
--- /dev/null
+++ b/class/BUSTER.var
@@ -0,0 +1,2 @@
+release=buster
+obs_release=Debian_10.0
diff --git a/class/DEBIAN.var b/class/DEBIAN.var
new file mode 100644
index 0000000..940b7da
--- /dev/null
+++ b/class/DEBIAN.var
@@ -0,0 +1,5 @@
+release=stretch
+apt_cdn=http://deb.debian.org
+FAI_DEBOOTSTRAP="$release $apt_cdn/debian/"
+KEYMAP=us-latin1
+CONSOLEFONT=
diff --git a/class/INSTALL.var b/class/INSTALL.var
new file mode 100644
index 0000000..f0c4cbd
--- /dev/null
+++ b/class/INSTALL.var
@@ -0,0 +1 @@
+FAI_ACTION=install
diff --git a/class/SID.var b/class/SID.var
new file mode 100644
index 0000000..9d2a09a
--- /dev/null
+++ b/class/SID.var
@@ -0,0 +1,2 @@
+release=sid
+obs_release=sid
diff --git a/class/STRETCH.var b/class/STRETCH.var
new file mode 100644
index 0000000..7c20019
--- /dev/null
+++ b/class/STRETCH.var
@@ -0,0 +1,2 @@
+release=stretch
+obs_release=Debian_9.0