#!/bin/sh # nup-ndown - Turn modem on if it's off, and vice-versa # Meant to be used from a panel button; works with "nup" pid file pidfile=/tmp/.nup-pid if [ -f $pidfile ] # modem is up then ndown else nup fi