From d8b7fc9c01b31a60ea46804735ea8cef3e97eb03 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sat, 4 Jul 2015 15:48:27 +0000
Subject: LinHES-system: LinHES-session: check machine-id and create if needed

---
 abs/core/LinHES-system/LinHES-session | 10 ++++++++++
 abs/core/LinHES-system/PKGBUILD       |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index 4563078..ad8fb3c 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -391,6 +391,15 @@ function stop_plymouth()
     fi
 }
 
+function machine-id_check()
+{
+    if [ ! -s /etc/machine-id ]
+    then
+        echo "Setting machine ID in /etc/machine-id"
+        sudo systemd-machine-id-setup
+    fi
+}
+
 
 if [ x"$WM" = "fluxbox" ]
 then
@@ -412,6 +421,7 @@ notify_scan &
 auto_start &
 update_apple_trailers
 stop_plymouth &
+machine-id_check &
 first_configure
 show_help_tip
 start_myth
diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index bcf7a73..6b8670c 100755
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-system
 pkgver=8.3
-pkgrel=12
+pkgrel=13
 arch=('i686' 'x86_64')
 install=system.install
 pkgdesc="Everything that makes LinHES an automated system"
@@ -77,7 +77,7 @@ package() {
 
 }
 
-md5sums=('8415c4b2587a8a1e6a312484c1edafcb'
+md5sums=('76842f8cff548d2c1289e0992a8b84dd'
          'de32a1c50101265dd7f6ca5037f7a26a'
          '2d7b8414ddce5f401331342ac1529c22'
          '76b2637cac0452b3acdbeeb4e8a5474b'
-- 
cgit v0.12

