summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/97-remove_i2p
blob: 071f537b96be45f5a750913ba4cb55261970ff9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -u
set -e

# Everything moved by this hook script will be reversed in the event that
# the string "i2p" is entered at a boot prompt

DEST="/usr/share/tails/i2p-disabled"

[ -d "/usr/share/i2p" ] || return 0

mkdir "$DEST"
mv -f /usr/share/i2p "$DEST"
mv -f /usr/sbin/wrapper "$DEST"
mv -f /usr/share/applications/i2p-browser.desktop "$DEST"