This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to automatically remove "appleprecisiontrackpadbluetooth.inf" and "appleprecisiontrackpadusb.inf". | |
# Get installed drivers with pnputil and include previous line (the published name) | |
$drivers = (pnputil /enum-drivers | Select-String -Pattern "appleprecisiontrackpadbluetooth.inf|appleprecisiontrackpadusb.inf" -Context 1,0) | |
# Sanity check the results | |
switch ($drivers.Count) { | |
0 {Write-Host "No drivers found, exiting"; pause; exit} | |
1 {Write-Host "Only one driver found, are you sure you want to continue?"; Read-Host "Press any key to continue, or Ctrl+C to abort"; Write-Host "Continuing"} | |
2 {Write-Host "Two drivers found, continuing"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Interface] | |
Address = 10.0.0.1/24 | |
PrivateKey = | |
ListenPort = | |
PreUp = iptables -w -P FORWARD DROP; iptables -w -A FORWARD -i %i -o %i -j ACCEPT; echo 1 > /proc/sys/net/ipv4/ip_forward | |
PostDown = echo 0 > /proc/sys/net/ipv4/ip_forward; iptables -w -D FORWARD -i %i -o %i -j ACCEPT; iptables -w -P FORWARD ACCEPT | |
[Peer] | |
PublicKey = | |
PresharedKey = |
NewerOlder