summaryrefslogtreecommitdiff
path: root/configs/lxde-openrc/airootfs/root
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-08-01 17:48:54 -0400
committerDavid P <megver83@parabola.nu>2020-08-01 17:48:54 -0400
commit639655512cca739816fcee7ad911fd95a5dd8815 (patch)
tree384520dc4091a793ad597e820c2bdc4de3460573 /configs/lxde-openrc/airootfs/root
parentd74b3dd5dada3e4c976a5c3c191c4b75aceca1b9 (diff)
sync lxde-openrc with releng-openrc
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'configs/lxde-openrc/airootfs/root')
-rwxr-xr-xconfigs/lxde-openrc/airootfs/root/.automated_script.sh4
-rw-r--r--configs/lxde-openrc/airootfs/root/.zlogin3
-rwxr-xr-xconfigs/lxde-openrc/airootfs/root/customize_airootfs.sh17
-rw-r--r--configs/lxde-openrc/airootfs/root/install.txt2
4 files changed, 10 insertions, 16 deletions
diff --git a/configs/lxde-openrc/airootfs/root/.automated_script.sh b/configs/lxde-openrc/airootfs/root/.automated_script.sh
index 0159a8f..ed3a924 100755
--- a/configs/lxde-openrc/airootfs/root/.automated_script.sh
+++ b/configs/lxde-openrc/airootfs/root/.automated_script.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/usr/bin/env bash
script_cmdline ()
{
local param
for param in $(< /proc/cmdline); do
case "${param}" in
- script=*) echo "${param##*=}" ; return 0 ;;
+ script=*) echo "${param#*=}" ; return 0 ;;
esac
done
}
diff --git a/configs/lxde-openrc/airootfs/root/.zlogin b/configs/lxde-openrc/airootfs/root/.zlogin
index b24dba9..7eab09f 100644
--- a/configs/lxde-openrc/airootfs/root/.zlogin
+++ b/configs/lxde-openrc/airootfs/root/.zlogin
@@ -1,3 +1,6 @@
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+
~/.automated_script.sh
~/.language.sh
export $(cat /etc/locale.conf)
diff --git a/configs/lxde-openrc/airootfs/root/customize_airootfs.sh b/configs/lxde-openrc/airootfs/root/customize_airootfs.sh
index 47030c3..ee8fb9b 100755
--- a/configs/lxde-openrc/airootfs/root/customize_airootfs.sh
+++ b/configs/lxde-openrc/airootfs/root/customize_airootfs.sh
@@ -1,7 +1,11 @@
-#!/bin/bash
+#!/usr/bin/env bash
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
set -e -u
+echo 'Warning: customize_airootfs.sh is deprecated! Support for it will be removed in a future parabolaiso version.'
+
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
sed -i 's/#\(es_ES\.UTF-8\)/\1/' /etc/locale.gen
sed -i 's/#\(gl_ES\.UTF-8\)/\1/' /etc/locale.gen
@@ -12,15 +16,4 @@ sed -i 's/#\(fr_FR\.UTF-8\)/\1/' /etc/locale.gen
sed -i 's/#\(eo\)/\1/' /etc/locale.gen
locale-gen
-ln -sf /usr/share/zoneinfo/UTC /etc/localtime
-
-usermod -s /usr/bin/zsh root
-cp -aT /etc/skel/ /root/
-chmod 700 /root
-
-sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
-
-rc-update add NetworkManager default
-
-sed -i "s/_DATE_/$(date +%Y.%m.%d)/" /etc/motd
diff --git a/configs/lxde-openrc/airootfs/root/install.txt b/configs/lxde-openrc/airootfs/root/install.txt
deleted file mode 100644
index a594b97..0000000
--- a/configs/lxde-openrc/airootfs/root/install.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-View this installation guide online at
-https://wiki.parabola.nu/Installation_Guide