Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- packages/network/iptables/scripts/iptables_helper 2019-12-03 12:42:50.416112429 +0000
- +++ packages/network/iptables/scripts/iptables_helper 2019-12-03 12:44:01.075990332 +0000
- @@ -18,10 +18,12 @@
- }
- check_tether() {
- - if [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/wifi -e 'Tethering = True'`" ]; then
- + if [ -n "`$CONNMANCTL technologies | grep -A5 -e technology/wifi | grep 'Tethering = True'`" ]; then
- TECHNOLOGY="wifi"
- - elif [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/ethernet -e 'Tethering = True'`" ]; then
- + elif [ -n "`$CONNMANCTL technologies | grep -A5 -e technology/ethernet | grep 'Tethering = True'`" ]; then
- TECHNOLOGY="ethernet"
- + else
- + return 0
- fi
- $CONNMANCTL tether $TECHNOLOGY off
- sleep 1
Add Comment
Please, Sign In to add comment