python3: update to 3.11.10
[openadk.git] / package / rp-pppoe / files / pppoe_server.init
blob331048593328a84eacb52f0494a66de024fa97e9
1 #!/bin/sh
2 #PKG pppoe-server
3 #INIT 50
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${pppoe_server:-NO}" = x"NO" && exit 0
10 test x"$pppoe_server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 /usr/sbin/pppoe-server
16 stop)
17 kill $(pgrep -f /usr/sbin/pppoe-server)
19 restart)
20 sh $0 stop
21 sh $0 start
24 echo "Usage: $0 {start | stop | restart}"
25 exit 1
27 esac
28 exit $?