52-update-rc.d 1016 Bytes
Newer Older
1 2
#!/bin/sh

3 4
set -e

5
CUSTOM_INITSCRIPTS="
6
tails-autotest-remote-shell
7 8 9 10 11
tails-detect-virtualization
tails-kexec
tails-reconfigure-kexec
tails-reconfigure-memlockd
tails-sdmem-on-media-removal
12
tails-set-wireless-devices-state
13
tor-controlport-filter
14 15 16
"

PATCHED_INITSCRIPTS="
17
alsa-utils
18
gdomap
19
haveged
20
hdparm
21
hwclock.sh
22
i2p
23 24
kexec
kexec-load
25
laptop-mode
26 27 28
memlockd
network-manager
plymouth
29
pulseaudio
30 31 32
resolvconf
saned
spice-vdagent
33 34 35 36
tor
ttdnsd
"

37 38 39 40 41 42
# Ensure that we are using dependency based boot
if ! dpkg -s insserv >/dev/null 2>&1 || [ -f /etc/init.d/.legacy-bootordering ]; then
	echo "Dependency based boot sequencing is not configured. Aborting." >&2
	exit 1
fi

43
echo "Configuring boot sequence"
Tails developers's avatar
Tails developers committed
44

45 46 47 48
# The patches to adjust the runlevels are applied to the chroot
# after the packages have been installed. So we need to remove them first,
# to re-install them with our settings.
insserv -r $PATCHED_INITSCRIPTS
49

50 51
# Re-install overriden initscripts and install our custom ones.
insserv $PATCHED_INITSCRIPTS $CUSTOM_INITSCRIPTS