Skip to content

Instantly share code, notes, and snippets.

@Columbo818
Last active August 31, 2022 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Columbo818/3726d640998374f3fa14b4ee800fa749 to your computer and use it in GitHub Desktop.
Save Columbo818/3726d640998374f3fa14b4ee800fa749 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# VPN fixes
sudo mv /etc/openvpn/bapt-greyparrot.conf /etc/openvpn/greyparrot.conf >> /mnt/capture/log/baptism.log
sudo systemctl stop openvpn@bapt-greyparrot >> /mnt/capture/log/baptism.log
sudo systemctl enable openvpn@greyparrot >> /mnt/capture/log/baptism.log
sudo systemctl start openvpn@greyparrot >> /mnt/capture/log/baptism.log
fixed=$(cat ~/.config/autostart/baptiseMe.sh | grep -c "PROD > /dev/null")
if [[ $fixed -ne 0 ]]; then
sudo sed -i 's\PROD > /dev/null\PROD > /mnt/capture/log/baptism.log\g' ~/.config/autostart/baptiseMe.sh
exec ~/.config/autostart/baptiseMe.sh
fi
sudo chown elroy:elroy /mnt/capture
yes "yes" | sudo sensors-detect
sudo sed -i 's/Unattended-Upgrade "1"/Unattended-Upgrade "0"/g' /etc/apt/apt.conf.d/20auto-upgrades
sudo sed -i 's,169.254.0.1/24,169.254.0.1/16,g' /etc/netplan/01-network-manager-all.yaml
sudo netplan apply
echo "No additional commands to run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment