1 #!/bin/sh /etc/rc.common
4 .
/lib
/functions
/network.sh
15 config_get atmdev
"$cfg" atmdev
0
18 config_get unit
"$cfg" unit
0
21 config_get vpi
"$cfg" vpi
8
24 config_get vci
"$cfg" vci
35
27 config_get encaps
"$cfg" encaps
35 config_get payload
"$cfg" payload
43 config_get qos
"$cfg" qos
46 config_get sendsize
"$cfg" sendsize
48 local circuit
="$atmdev.$vpi.$vci"
50 network_defer_device
"nas$unit"
52 SERVICE_PID_FILE
="/var/run/br2684ctl-$circuit.pid" \
53 service_start
/usr
/sbin
/br2684ctl \
54 -c "$unit" -e "$encaps" -p "$payload" \
55 -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
58 network_ready_device
"nas$unit"
65 config_get atmdev
"$cfg" atmdev
0
68 config_get unit
"$cfg" unit
0
71 config_get vpi
"$cfg" vpi
8
74 config_get vci
"$cfg" vci
35
76 local circuit
="$atmdev.$vpi.$vci"
78 SERVICE_PID_FILE
="/var/run/br2684ctl-$circuit.pid" \
79 service_stop
/usr
/sbin
/br2684ctl
84 config_foreach start_daemon atm-bridge
89 config_foreach stop_daemon atm-bridge