sihy

Untitled

Dec 3rd, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. --- packages/network/iptables/scripts/iptables_helper   2019-12-03 12:42:50.416112429 +0000
  2. +++ packages/network/iptables/scripts/iptables_helper   2019-12-03 12:44:01.075990332 +0000
  3. @@ -18,10 +18,12 @@
  4.  }
  5.  
  6.  check_tether() {
  7. -    if [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/wifi -e 'Tethering = True'`" ]; then
  8. +    if [ -n "`$CONNMANCTL technologies | grep -A5 -e technology/wifi | grep 'Tethering = True'`" ]; then
  9.          TECHNOLOGY="wifi"
  10. -    elif [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/ethernet -e 'Tethering = True'`" ]; then
  11. +    elif [ -n "`$CONNMANCTL technologies | grep -A5 -e technology/ethernet | grep 'Tethering = True'`" ]; then
  12.          TECHNOLOGY="ethernet"
  13. +    else
  14. +        return 0
  15.      fi
  16.      $CONNMANCTL tether $TECHNOLOGY off
  17.      sleep 1
Add Comment
Please, Sign In to add comment