NetBSD/usr.sbin/pppd/chat/ppp-off

6 lines
105 B
Bash

#!/bin/sh
kill -s INT `ps -ax | egrep " ppp " | egrep -v "egrep" | sed 's/^\([ 0-9]*\) .*/\1'/`
exit 0