[4/5] add accessible boot entry and speakup start logick

Message ID 20191018141940.6401-5-aarnaarn2@gmail.com
State New
Headers show
Series
  • [1/5] add necessary accessibility packages
Related show

Commit Message

nl6720 via arch-releng Oct. 18, 2019, 2:19 p.m. UTC
---
 configs/releng/airootfs/root/.zlogin     |  6 ++++++
 configs/releng/build.sh                  |  1 +
 configs/releng/isolinux/BEEP             |  1 +
 configs/releng/isolinux/isolinux.cfg     |  1 +
 configs/releng/syslinux/archiso_head.cfg |  1 +
 configs/releng/syslinux/archiso_sys.cfg  | 11 +++++++++++
 6 files changed, 21 insertions(+)
 create mode 100644 configs/releng/isolinux/BEEP

Patch

diff --git a/configs/releng/airootfs/root/.zlogin b/configs/releng/airootfs/root/.zlogin
index f598e43..1e88269 100644
--- a/configs/releng/airootfs/root/.zlogin
+++ b/configs/releng/airootfs/root/.zlogin
@@ -1 +1,7 @@ 
+if [ -n "$(grep -oP 'speakup.synth=\K\S+' /proc/cmdline)" ]
+then
+    setopt singlelinezle
+    flock -n /run/talk-to-me.lck talk-to-me
+fi
 ~/.automated_script.sh
+
diff --git a/configs/releng/build.sh b/configs/releng/build.sh
index 659e8de..67cab58 100755
--- a/configs/releng/build.sh
+++ b/configs/releng/build.sh
@@ -145,6 +145,7 @@  make_syslinux() {
 make_isolinux() {
     mkdir -p ${work_dir}/iso/isolinux
     sed "s|%INSTALL_DIR%|${install_dir}|g" ${script_path}/isolinux/isolinux.cfg > ${work_dir}/iso/isolinux/isolinux.cfg
+    cp ${script_path}/isolinux/BEEP ${work_dir}/iso/isolinux/
     cp ${work_dir}/x86_64/airootfs/usr/lib/syslinux/bios/isolinux.bin ${work_dir}/iso/isolinux/
     cp ${work_dir}/x86_64/airootfs/usr/lib/syslinux/bios/isohdpfx.bin ${work_dir}/iso/isolinux/
     cp ${work_dir}/x86_64/airootfs/usr/lib/syslinux/bios/ldlinux.c32 ${work_dir}/iso/isolinux/
diff --git a/configs/releng/isolinux/BEEP b/configs/releng/isolinux/BEEP
new file mode 100644
index 0000000..7149f57
--- /dev/null
+++ b/configs/releng/isolinux/BEEP
@@ -0,0 +1 @@ 
+
diff --git a/configs/releng/isolinux/isolinux.cfg b/configs/releng/isolinux/isolinux.cfg
index 10fd285..a469492 100644
--- a/configs/releng/isolinux/isolinux.cfg
+++ b/configs/releng/isolinux/isolinux.cfg
@@ -1,3 +1,4 @@ 
+DISPLAY BEEP
 PATH /%INSTALL_DIR%/boot/syslinux/
 DEFAULT loadconfig
 
diff --git a/configs/releng/syslinux/archiso_head.cfg b/configs/releng/syslinux/archiso_head.cfg
index 81ad26e..4b96d0b 100644
--- a/configs/releng/syslinux/archiso_head.cfg
+++ b/configs/releng/syslinux/archiso_head.cfg
@@ -23,3 +23,4 @@  MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
 MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
 MENU COLOR msg07        37;40   #90ffffff #a0000000 std
 MENU COLOR tabmsg       31;40   #30ffffff #00000000 std
+MENU IMMEDIATE
diff --git a/configs/releng/syslinux/archiso_sys.cfg b/configs/releng/syslinux/archiso_sys.cfg
index a35a1ea..335422c 100644
--- a/configs/releng/syslinux/archiso_sys.cfg
+++ b/configs/releng/syslinux/archiso_sys.cfg
@@ -10,4 +10,15 @@  LINUX boot/x86_64/vmlinuz
 INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/archiso.img
 APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
 
+# accessability boot option
+LABEL arch64speatch
+TEXT HELP
+Boot the Arch Linux (x86_64) live medium with speakup enabled.
+It allows you to install Arch Linux or perform system maintenance using speatch feedback.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64) with ^speatch
+LINUX boot/x86_64/vmlinuz
+INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% speakup.synth=soft
+
 INCLUDE boot/syslinux/archiso_tail.cfg