#!/bin/bash # Toggle connect state to Accucomm, my service provider. # Put on a WM-available button. # # The grep-based toggle command isn't totally reliable - I often have # to click twice to trigger it. # usernetctl is a part of RedHat/Fedora, don't know if it's available # in other distros. # Chrony is a great idea, but proved very unreliable, and # WWWoffle is gone because I never really used it. # There are usually two matches in "ps ax" for ppp when the connection is up. if ps ax | grep -q ppp then #/usr/bin/chronyc <