1 #!/bin/sh /etc/rc.common
8 config_get atmdev
"$cfg" atmdev
0
11 config_get unit
"$cfg" unit
0
14 config_get vpi
"$cfg" vpi
8
17 config_get vci
"$cfg" vci
35
20 config_get encaps
"$cfg" encaps
28 config_get payload
"$cfg" payload
36 config_get qos
"$cfg" qos
39 config_get sendsize
"$cfg" sendsize
41 local circuit
="$atmdev.$vpi.$vci"
42 local pid
="/var/run/br2684ctl-$circuit.pid"
44 start-stop-daemon
-S -b -x /usr
/sbin
/br2684ctl
-m -p "$pid" -- \
45 -c "$unit" -e "$encaps" -p "$payload" \
46 -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
50 insmod br2684
>/dev
/null
2>/dev
/null
52 config_foreach start_daemon atm-bridge
57 for pid
in /var
/run
/br2684ctl-
*.pid
; do
58 if [ -f "$pid" ]; then
59 service_kill br2684ctl
"$pid"