This file is indexed.

/usr/lib/ubiquity/target-config/30accessibility is in ubiquity-casper 1.340.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/sh
# If you are looking to change accessibility profile settings, plesae look in
# bin/casper-a11y-enable.

. /usr/share/debconf/confmodule
. /etc/casper.conf

PREREQ=""
DESCRIPTION="Configuring accessibility options..."
db_get passwd/username
TARGET_USERNAME="$RET"

copy_orca_config()
{
	if [ -f /home/$USERNAME/.local/share/orca/user-settings.conf ]; then
		mkdir -p /target/home/$TARGET_USERNAME/.local/share
		mkdir -p /target/var/lib/lightdm/.local/share
		cp -r /home/$USERNAME/.local/share/orca /target/home/$TARGET_USERNAME/.local/share
		cp -r /home/$USERNAME/.local/share/orca /target/var/lib/lightdm/.local/share
		chroot /target chown -R $TARGET_USERNAME.$TARGET_USERNAME /home/$TARGET_USERNAME/.local
		chroot /target chown -R lightdm.lightdm /var/lib/lightdm/.local
		chmod 755 /target/home/$TARGET_USERNAME/.local/share/orca
		chmod 755 /target/var/lib/lightdm/.local/share/orca
	fi
}

for x in $(cat /proc/cmdline); do
	case $x in
		# Lesser Visual Impairment
		access=v1)
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script high-contrast
			exit
                        ;;
		# Moderate Visual Impairment
		access=v2)
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script magnifier
			exit
                        ;;
		# Blindness
		access=v3)
			copy_orca_config
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script blindness
			exit
                        ;;
		# Braille
		braille=ask)
			copy_orca_config
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script braille
			exit
                        ;;
		# Minor Motor Difficulties
		access=m1)
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script keyboard-modifiers
			exit
                        ;;
		# Motor Difficulties - pointing devices
		access=m2)
			/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script onscreen-keyboard
			exit
                        ;;
		esac
done

if [ -z "$UBIQUITY_A11Y_PROFILE" ] && [ -f /tmp/casper-a11y.conf ]; then
	. /tmp/casper-a11y.conf
fi

case "$UBIQUITY_A11Y_PROFILE" in
	# Lesser Visual Impairment
	high-contrast)
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script high-contrast
		;;
	# Moderate Visual Impairment
	magnifier)
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script magnifier
		;;
	# Blindness
	screen-reader)
		copy_orca_config
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script blindness
		;;
	# Braille
	braille)
		copy_orca_config
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script braille
		;;
	# Minor Motor Difficulties
	keyboard-modifiers)
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script keyboard-modifiers
		;;
	# Motor Difficulties - pointing devices
	onscreen-keyboard)
		/usr/bin/casper-a11y-enable -login -user="$TARGET_USERNAME" -chroot=/target -script onscreen-keyboard
		;;
esac