aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Angelo Compagnucci <angelo@amarulasolutions.com>2019-02-05 11:49:58 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-02-05 14:09:17 +0100
commit387fadbf8ddebbdbb1b1f0a27ab22c5f94d623cc (patch)
treeb28e9d31cc8ac1f05ce681c8ae5aea83f51ca825
parent99ed53cc2b52e68d322f2154a3c9b9af335c0c6b (diff)
downloadbuildroot-387fadbf8ddebbdbb1b1f0a27ab22c5f94d623cc.tar.gz
buildroot-387fadbf8ddebbdbb1b1f0a27ab22c5f94d623cc.tar.bz2
package/mender: adding device_type file
In order to have the mender package working out of the box, the /etc/mender/device_type should be present and should contain a valid device_type value. This patch provides a default file that can be overridden easily from an overlay. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Acked-by: <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mender/device_type1
-rw-r--r--package/mender/mender.mk3
2 files changed, 4 insertions, 0 deletions
diff --git a/package/mender/device_type b/package/mender/device_type
new file mode 100644
index 0000000000..a097ef2b3a
--- /dev/null
+++ b/package/mender/device_type
@@ -0,0 +1 @@
+device_type=BUILDROOT_DEVICE
diff --git a/package/mender/mender.mk b/package/mender/mender.mk
index 0377270a43..0d719382f8 100644
--- a/package/mender/mender.mk
+++ b/package/mender/mender.mk
@@ -53,6 +53,9 @@ define MENDER_INSTALL_CONFIG_FILES
$(INSTALL) -D -m 0755 package/mender/artifact_info \
$(TARGET_DIR)/etc/mender/artifact_info
+ $(INSTALL) -D -m 0755 package/mender/device_type \
+ $(TARGET_DIR)/etc/mender/device_type
+
ln -snf /var/run/mender $(TARGET_DIR)/var/lib/mender
endef