OSDN Git Service

[add] : Added lightdm module
authorhayao <hayao@fascode.net>
Fri, 5 Mar 2021 07:15:56 +0000 (16:15 +0900)
committerhayao <hayao@fascode.net>
Fri, 5 Mar 2021 07:15:56 +0000 (16:15 +0900)
modules/lightdm/airootfs.any/etc/lightdm/lightdm.conf.d/02-autologin.conf [new file with mode: 0644]
modules/lightdm/airootfs.any/root/customize_airootfs_lightdm.sh [new file with mode: 0755]
modules/lightdm/alteriso [new file with mode: 0644]
modules/lightdm/architecture [new file with mode: 0644]
modules/lightdm/config.any [new file with mode: 0644]
modules/lightdm/packages.i686/lightdm.i686 [new file with mode: 0644]
modules/lightdm/packages.x86_64/lightdm.x86_64 [new file with mode: 0644]

diff --git a/modules/lightdm/airootfs.any/etc/lightdm/lightdm.conf.d/02-autologin.conf b/modules/lightdm/airootfs.any/etc/lightdm/lightdm.conf.d/02-autologin.conf
new file mode 100644 (file)
index 0000000..d8e8a7a
--- /dev/null
@@ -0,0 +1,4 @@
+[Seat:*]
+autologin-user=%USERNAME%
+autologin-user-timeout=0
+autologin-session=xfce
diff --git a/modules/lightdm/airootfs.any/root/customize_airootfs_lightdm.sh b/modules/lightdm/airootfs.any/root/customize_airootfs_lightdm.sh
new file mode 100755 (executable)
index 0000000..7725502
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+
+# Enable LightDM to auto login
+if [[ "${boot_splash}" =  true ]]; then
+    systemctl enable lightdm-plymouth.service
+else
+    systemctl enable lightdm.service
+fi
+
+
+# Replace auto login user
+sed -i "s|%USERNAME%|${username}|g" "/etc/lightdm/lightdm.conf.d/02-autologin.conf"
diff --git a/modules/lightdm/alteriso b/modules/lightdm/alteriso
new file mode 100644 (file)
index 0000000..9e793f3
--- /dev/null
@@ -0,0 +1 @@
+alteriso=3.1
diff --git a/modules/lightdm/architecture b/modules/lightdm/architecture
new file mode 100644 (file)
index 0000000..664761f
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# Supported architecture list
+
+x86_64
+i686
diff --git a/modules/lightdm/config.any b/modules/lightdm/config.any
new file mode 100644 (file)
index 0000000..cf7844b
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# config
+#
+# Overwrites the first to read and set the build script
+# This configuration file follows the bash syntax.
+#
+
+# Modules to include
+# An array of module directory names to include.
+# This setting cannot be changed by an argument.
+modules+=(
+    "share-extra"
+)
diff --git a/modules/lightdm/packages.i686/lightdm.i686 b/modules/lightdm/packages.i686/lightdm.i686
new file mode 100644 (file)
index 0000000..cc28894
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Alter Linux package list
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# Display Manager
+
+lightdm
diff --git a/modules/lightdm/packages.x86_64/lightdm.x86_64 b/modules/lightdm/packages.x86_64/lightdm.x86_64
new file mode 100644 (file)
index 0000000..cc28894
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Alter Linux package list
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# Display Manager
+
+lightdm