57 lines
1.9 KiB
Bash
Executable File
57 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# NOTICE: THIS IS NOT READY - NEEDS MORE TESTING
|
|
# (WILL WORK ON THIS AGAIN AS I GET TIME - OTHERS WELCOME TO CONTRIBUTE)
|
|
# Tails setup (wipri)
|
|
#
|
|
# righttoprivacy[at]tutanota.com
|
|
#
|
|
|
|
# COLORS
|
|
export BLUE='\033[1;94m'
|
|
export GREEN='\033[1;92m'
|
|
export RED='\033[1;91m'
|
|
export WHITE='\033[0;37m'
|
|
export ENDCOLOR='\033[1;00m'
|
|
|
|
# VARIABLES
|
|
wpcmd='wipri -d wlan0 -p' # Default wipri command - wipri-list commands work too!
|
|
# if you use wipri-list be sure to create mac's for your list w/ -a flag$
|
|
scriptsdir="/home/amnesia/Persistent/scriptz"
|
|
|
|
# DOWNLOAD WIPRI + INITIAL SETUP
|
|
function dlwipri() {
|
|
cd /home/amnesia/Persistent
|
|
mkdir -p scriptz
|
|
cd scriptz
|
|
# below assumes you are running Tails (.onion)
|
|
git clone http://gg6zxtreajiijztyy5g6bt5o6l3qu32nrg7eulyemlhxwwl6enk6ghad.onion/RightToPrivacy/WiPri.git
|
|
cd WiPri
|
|
echo -e "You will be asked which command you wish to use" && sleep .5
|
|
echo -e "wipri or wipri-list commands apply" && sleep .5
|
|
echo -e "* ${RED}If you choose a wipri-list cmd, -a flag must be run to begin creating list *${ENDCOLOR}\n" && sleep .5
|
|
read -p "What wipri or wipri-list command would you like to start at boot? " wpcmd
|
|
chmod +x install.sh
|
|
sudo ./install.sh -c "$wpcmd"
|
|
echo "Command You Chose For Persistence: ${RED}\"$wpcmd\"${ENDCOLOR}"
|
|
}
|
|
|
|
function persist() {
|
|
chmod +x $scriptsdir/WiPri/readd.sh
|
|
mkdir -p /live/persistence/TailsData_unlocked/dotfiles/.config
|
|
mkdir -p /live/persistence/TailsData_unlocked/dotfiles/.config/autostart
|
|
cp $scriptsdir/WiPri/wipri-setup.desktop /live/persistence/TailsData_unlocked/dotfiles/.config/autostart
|
|
chmod +x /live/persistence/TailsData_unlocked/dotfiles/.config/autostart/wipri-setup.desktop
|
|
|
|
}
|
|
|
|
# MAIN FUNCTION
|
|
function main() {
|
|
echo "Now testing download wipri..." && sleep 1
|
|
dlwipri
|
|
persist
|
|
}
|
|
|
|
# THIS SET OF SCRIPTS IS UNDER CONSTRUCTION BUT UPLOADED - WAIT FOR COMMENT REMOVAL.
|
|
main
|