tor/launch
2017-09-04 21:03:06 +02:00

20 lines
518 B
Bash

#!/bin/bash
set -x
#
# Make errors visible upon `docker logs -f steam` command
#
exec 2>&1
#
# Befriend with grsecurity patched Linux kernel
#
if [ -r /proc/sys/kernel/grsecurity/tpe_gid ]; then
groupadd -r -g $(cat /proc/sys/kernel/grsecurity/tpe_gid) grsec-tpe
usermod -aG grsec-tpe $USER
setfattr -n user.pax.flags -v "rm" \
$HOME/tor-browser/Browser/firefox \
$HOME/tor-browser/Browser/TorBrowser/Tor/tor
fi
su -s /bin/sh -p $USER -c "cd ./tor-browser_en-US/Browser && ./start-tor-browser"