adding tails-install script to allow
users to install wipri to TailsOS (optional) . EOFmaster
parent
3337a47d4a
commit
8e9201d592
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# to run every boot
|
||||
#
|
||||
#
|
||||
wpdir=/home/amnesia/Persistent/scriptz/WiPri
|
||||
|
||||
sudo cp $wpdir/wipri /usr/bin
|
||||
sudo cp $wpdir/wipri-list /usr/bin
|
||||
sudo chmod +x /usr/bin/wipri
|
||||
sudo chmod +x /usr/bin/wipri-list
|
||||
sudo mkdir /etc/wipri
|
||||
sudo cp $wpdir/phone.OUI /etc/wipri
|
||||
sudo cp $wpdir/final.OUI /etc/wipri
|
||||
sudo cp $wpdir/wipri.service /etc/systemd/system
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable wipri.service
|
||||
sudo systemctl restart wipri.service
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# For easy Tails setup (wipri)
|
||||
#
|
||||
# righttoprivacy[at]tutanota.com
|
||||
#
|
||||
|
||||
# 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 "If you choose wipri-list be aware -a flag must be run to create mac list\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 "This is command chosen for Persistence: \"$wpcmd\""
|
||||
cp readd.sh /home/amnesia/Persistent/scriptz/WiPri
|
||||
chmod +x /home/amnesia/Persistent/scriptz/WiPri/readd.sh
|
||||
}
|
||||
|
||||
# MAIN FUNCTION
|
||||
function main() {
|
||||
echo "Now testing download wipri..." && sleep 1
|
||||
dlwipri
|
||||
}
|
||||
|
||||
# THIS SET OF SCRIPTS IS UNDER CONSTRUCTION BUT UPLOADED - WAIT FOR COMMENT REMOVAL.
|
||||
main
|
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=wipriMetaPri
|
||||
Type=Application
|
||||
Exec=/home/amnesia/Persistent/scriptz/WiPri/readd.sh
|
||||
Terminal=false
|
||||
X-GNOMe-Autostart-enabled=true
|
Loading…
Reference in New Issue