1 #!/bin/sh /etc/rc.common
12 config_get atmdev
"$cfg" atmdev
0
15 config_get unit
"$cfg" unit
0
18 config_get vpi
"$cfg" vpi
8
21 config_get vci
"$cfg" vci
35
24 config_get encaps
"$cfg" encaps
32 config_get payload
"$cfg" payload
40 config_get qos
"$cfg" qos
43 config_get sendsize
"$cfg" sendsize
45 local circuit
="$atmdev.$vpi.$vci"
47 SERVICE_PID_FILE
="/var/run/br2684ctl-$circuit.pid" \
48 service_start
/usr
/sbin
/br2684ctl \
49 -c "$unit" -e "$encaps" -p "$payload" \
50 -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
57 config_get atmdev
"$cfg" atmdev
0
60 config_get unit
"$cfg" unit
0
63 config_get vpi
"$cfg" vpi
8
66 config_get vci
"$cfg" vci
35
68 local circuit
="$atmdev.$vpi.$vci"
70 SERVICE_PID_FILE
="/var/run/br2684ctl-$circuit.pid" \
71 service_stop
/usr
/sbin
/br2684ctl
76 config_foreach start_daemon atm-bridge
81 config_foreach stop_daemon atm-bridge