updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / br2684ctl / br2684ctl.sh
blob6b5d5def6e4543998b1398344b9b810cf1e16cf8
1 #!/bin/sh
3 # Daemon for configuring RFC 2684 ATM/Ethernet bridging
4 # Uses /sbin/br2684ctl utility.
6 . /etc/rc.conf
7 . /etc/rc.d/functions
9 case "$1" in
10 start)
11 stat_busy "Bridging ATM on PPPoE"
12 /usr/sbin/br2684ctl -b -c 0 -a 0.35 &>/dev/null
13 if [ $? -gt 0 ]; then
14 stat_fail
15 else
16 sleep 5
17 add_daemon br2684ctl
18 stat_done
22 stop)
23 stat_busy "Removing ATM on PPPoE Bridge..."
24 killall -KILL br2684ctl &>/dev/null
25 if [ $? -gt 0 ]; then
26 stat_fail
27 else
28 rm_daemon br2684ctl
29 stat_done
33 restart)
34 $0 stop
35 sleep 1
36 $0 start
40 echo $"Usage: $0 {start|stop|restart}"
41 exit 1
43 esac
44 exit 0