Is it possible to detect an active VPN connection with Tasker?
Vpn
A1: Run Shell [ Command:ifconfig Timeout (Seconds):0 Use Root:Off Store Output In:%out Store Errors In: Store Result In: Continue Task After Error:On ]
A2: If [ %out ~R (?m)^(ppp|tun) ]
A3: Flash [ Text:VPN is on Long:On ]
A4: Else
A5: Flash [ Text:VPN is off Long:On ]
A6: End If
I wanted to check inside a task. Your solution works. Thanks a lot!