summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-07-04 15:48:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-07-04 15:48:27 (GMT)
commitd8b7fc9c01b31a60ea46804735ea8cef3e97eb03 (patch)
treeb8585ea4e0ac30256d38f439c5b5a3509625d097 /abs/core/LinHES-system/LinHES-session
parent2ae97f9d9ade34c7149db121f622454d73a09631 (diff)
downloadlinhes_pkgbuild-d8b7fc9c01b31a60ea46804735ea8cef3e97eb03.zip
linhes_pkgbuild-d8b7fc9c01b31a60ea46804735ea8cef3e97eb03.tar.gz
linhes_pkgbuild-d8b7fc9c01b31a60ea46804735ea8cef3e97eb03.tar.bz2
LinHES-system: LinHES-session: check machine-id and create if needed
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session10
1 files changed, 10 insertions, 0 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