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
38 local circuit
="$atmdev.$vpi.$vci"
39 local pid
="/var/run/br2684ctl-$circuit.pid"
41 start-stop-daemon
-S -b -x /usr
/sbin
/br2684ctl
-m -p "$pid" -- \
42 -c "$unit" -e "$encaps" -p "$payload" \
43 -a "$circuit" ${qos:+-q "$qos"}
47 insmod br2684
>/dev
/null
2>/dev
/null
49 config_foreach start_daemon atm-bridge
54 for pid
in /var
/run
/br2684ctl-
*.pid
; do
55 if [ -f "$pid" ]; then
56 service_kill br2684ctl
"$pid"