52-update-rc.d 1.39 KB
Newer Older
1 2
#!/bin/sh

3
echo "managing initscripts"
4

5
# enable custom initscripts
T(A)ILS developers's avatar
Bugfix.  
T(A)ILS developers committed
6
update-rc.d tails-detect-virtualization start 17 S .
7
update-rc.d tails-kexec                    stop 85 0 6 .
8 9
update-rc.d memlockd start 22 2 3 4 5 .
update-rc.d tails-sdmem-on-media-removal start 23 2 3 4 5 . stop 01 0 6
10
update-rc.d tails-reconfigure-kexec defaults
11
update-rc.d tails-reconfigure-memlockd defaults
12

13
# we run Tor ourselves after HTP via NetworkManager hooks
14
update-rc.d tor disable
15 16 17 18 19 20 21 22 23

# we reboot/halt using kexec->sdmem
update-rc.d -f halt   remove
update-rc.d -f reboot remove

# we provide our own tails-kexec initscript (more friendly to ejected CD/USB)
update-rc.d -f kexec  remove

# we use kexec on halt too => enable kexec-load initscript on runlevel 0 as well
24
update-rc.d -f kexec-load remove
25
update-rc.d kexec-load stop 18 0 6 .
26 27 28 29 30 31

# i2p should not start per default. At some point we want some script to start
# i2p during init if so selected in tails-greeter, but ATM users have to start
# the i2p script manually.

update-rc.d -f i2p remove
32 33 34

# we only want hdparm so that laptop-mode-tools can use it
update-rc.d hdparm disable
35 36 37 38 39

# don't use plymouth at shutdown/reboot
# (plymouth.postinst creates links using update-rc.d,
# so we cannot disable the links it creates by using LSB headers)
rm -f /etc/rc[06].d/*plymouth
Tails developers's avatar
Tails developers committed
40 41 42

# gdomap is not used between processes running as the same user on the same host
update-rc.d gdomap disable