97-remove_i2p 356 Bytes
Newer Older
Kill Your TV's avatar
Kill Your TV committed
1
2
3
4
5
6
7
8
#!/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

9
DEST="/usr/share/tails/i2p-disabled"
Kill Your TV's avatar
Kill Your TV committed
10
11
12

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

13
mkdir "$DEST"
Kill Your TV's avatar
Kill Your TV committed
14
mv -f /usr/share/i2p "$DEST"
15
mv -f /usr/sbin/wrapper "$DEST"
16
mv -f /usr/share/applications/i2p-browser.desktop "$DEST"