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

3 4
set -e

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

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

35 36 37 38 39 40
# 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

41
echo "Configuring boot sequence"
Tails developers's avatar
Tails developers committed
42

43 44 45 46
# 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
47

48 49
# Re-install overriden initscripts and install our custom ones.
insserv $PATCHED_INITSCRIPTS $CUSTOM_INITSCRIPTS