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

3 4
set -e

5 6 7 8 9 10 11 12 13
CUSTOM_INITSCRIPTS="
tails-detect-virtualization
tails-kexec
tails-reconfigure-kexec
tails-reconfigure-memlockd
tails-sdmem-on-media-removal
"

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

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