Add tip(1)'s emulation of cu(1) to tip's manual page.
[dragonfly.git] / etc / rc.d / pppoed
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/pppoed,v 1.1 2002/06/13 22:14:36 gordon Exp $
4 # $DragonFly: src/etc/rc.d/pppoed,v 1.2 2004/01/27 00:42:45 rob Exp $
5 #
6
7 # PROVIDE: pppoed
8 # REQUIRE: NETWORKING
9 # BEFORE: DAEMON
10 # KEYWORD: DragonFly
11
12 . /etc/rc.subr
13
14 name="pppoed"
15 rcvar="`set_rcvar`"
16 start_cmd="pppoed_start"
17 # XXX stop_cmd will not be straightforward
18 stop_cmd=":"
19
20 pppoed_start()
21 {
22         if [ -n "${pppoed_provider}" ]; then
23                         pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
24         fi
25         echo 'Starting pppoed'
26         _opts=$-; set -f
27         /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
28         set +f; set -${_opts}
29 }
30
31 load_rc_config $name
32 run_rc_command "$1"