52-update-rc.d 1.75 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 10 11 12 13 14 15 16 17 18
update-rc.d tails-reconfigure-kexec start 23 2 3 4 5 .
update-rc.d tails-reconfigure-memlockd start 23 2 3 4 5 .
update-rc.d tails-sdmem-on-media-removal start 24 2 3 4 5 . stop 01 0 6

# Start memlockd before media removal watchdog and skip stop on shutdown to
# keep files needed by tails-kexec properly in memory.
update-rc.d -f memlockd remove
sed -e '/^### BEGIN INIT INFO$/,/^### END INIT INFO$/ {
          s/^\(# Required-Stop:\).*$/\1/
          s/^\(# Default-Stop:\).*$/\1/
        }' -i /etc/init.d/memlockd
19
update-rc.d memlockd start 22 2 3 4 5 .
20

21
# we run Tor ourselves after HTP via NetworkManager hooks
22
update-rc.d tor disable
23 24 25 26 27

# 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
28
update-rc.d -f kexec-load remove
29
update-rc.d kexec-load stop 18 0 6 .
30 31 32 33 34 35

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

# we only want hdparm so that laptop-mode-tools can use it
update-rc.d hdparm disable
39 40 41 42 43

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

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

# we start NetworkManager ourselves, via tails-greeter, at PostLogin time
update-rc.d network-manager disable