52-update-rc.d 990 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 20
hdparm
i2p
21
ifupdown
22 23
kexec
kexec-load
24
laptop-mode
25 26 27
memlockd
network-manager
plymouth
28 29 30 31
polipo
resolvconf
saned
spice-vdagent
32 33
tor
ttdnsd
34
urandom
35 36
"

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