OSDN Git Service

[add] : Added scripts.
authorhayao <shun819.mail@gmail.com>
Wed, 29 Apr 2020 08:50:59 +0000 (17:50 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 29 Apr 2020 08:50:59 +0000 (17:50 +0900)
channels/lxde/airootfs/etc/profile.d/startx.sh [new file with mode: 0644]
channels/plasma/airootfs/etc/profile.d/startx.sh [new file with mode: 0644]
channels/xfce/airootfs/etc/profile.d/startx.sh [new file with mode: 0644]

diff --git a/channels/lxde/airootfs/etc/profile.d/startx.sh b/channels/lxde/airootfs/etc/profile.d/startx.sh
new file mode 100644 (file)
index 0000000..a4d98be
--- /dev/null
@@ -0,0 +1,3 @@
+if [[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]]; then
+    exec startx
+fi
\ No newline at end of file
diff --git a/channels/plasma/airootfs/etc/profile.d/startx.sh b/channels/plasma/airootfs/etc/profile.d/startx.sh
new file mode 100644 (file)
index 0000000..a4d98be
--- /dev/null
@@ -0,0 +1,3 @@
+if [[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]]; then
+    exec startx
+fi
\ No newline at end of file
diff --git a/channels/xfce/airootfs/etc/profile.d/startx.sh b/channels/xfce/airootfs/etc/profile.d/startx.sh
new file mode 100644 (file)
index 0000000..a4d98be
--- /dev/null
@@ -0,0 +1,3 @@
+if [[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]]; then
+    exec startx
+fi
\ No newline at end of file