wipri/wipri-eth0-usb.service

45 lines
1.7 KiB
INI

# Contents of /etc/systemd/system/wipri-eth0-usb.service
# This is an example file used for adding additional wipri usb ethernet service
#
# Instructions to use this file for added wipri ethernet usb device service:
#
# 1.) Run install.sh (as root) to automatically install wipri either as command or for single device boot (for wifi for example)
# 2.) Edit this file to change flag (-i is all brands) and match eth0 to your ethernet device (eth0 most common - substitute for your ethernet dev)
# 3.) Copy this wipri-eth0-usb.service file using command below:
# sudo cp wipri-eth0-usb.service /etc/systemd/system/wipri-eth0-usb.service
# 4.) Run the following commands to load and enable eth0 randomization at boot:
# sudo systemctl daemon-reload
# sudo systemctl enable wipri-eth0-usb.service
# 5.) Now, next time you boot, your eth0 device should be using wipri.
#
# STOPPING WIPRI BOOT SERVICE / DISABLING FUTURE BOOT SERVICE FROM STARTING:
#
# STOP WIPRI ETHERNET SERVICE: sudo systemctl stop wipri-eth0-usb
# DISABLE WIPRI ETHERNET SERVICE: sudo systemctl disable wipri-eth0-usb
#
# DISABLING wipri-eth0-usb will prevent it from starting next boot.
# If you have problems, follow above command to STOP wipri-eth0 to end process
#
# Have fun!
# righttoprivacy[at]tutanota.com
# Tutorials / Support: https://buymeacoffee.com/politictech
#
[Unit]
Description=WiPri eth0 (USB) Privacy Enhancement
# Change mac
Before=boot.mount
DefaultDependencies=no
# Feel free to change wipri commands below to meet your needs/wants
[Service]
Type=simple
ExecStart=wipri -d eth0 -p
ExecReload=killall -9 wipri;wipri -d eth0 -p
ExecStop=killall -9 wipri
Restart=on-failure
RemainAfterExit=no
[Install]
WantedBy=basic.target