shithub: riscv

ref: 1e04852c3d528234966984b703487c9209d163fe
dir: /rc/bin/inst/stopppp/

View raw version
#!/bin/rc

# desc: shut down the ppp connection
# prereq:

switch($1) {
case checkready
	if(! ~ $#pppdev 1 || ! isipdevup '^pkt[0-9]') {
		stopppp=notdone
		export stopppp
	}

case go
	kill ppp | rc

case checkdone
	stopppp=notdone
	export stopppp
}