[backfire] merge r27449
[openwrt-10.03/.git] / package / ifxmips-dsl-control / files / ifx_cpe_control_init.sh
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008 OpenWrt.org
3 START=99
4
5 start() {
6
7         # start CPE dsl daemon in the background
8         /sbin/dsl_cpe_control -i -f /lib/firmware/ModemHWE.bin &
9
10 #       PS=`ps`
11 #       echo $PS | grep -q dsl_cpe_control && {
12 #               # workaround for nfs: allow write to pipes for non-root
13 #               while [ ! -e /tmp/pipe/dsl_cpe1_ack ] ; do sleep 1; done
14 #               chmod a+w /tmp/pipe/dsl_*
15 #       }
16         echo $PS | grep -q dsl_cpe_control || {
17                 echo "Start of dsl_cpe_control failed!!!"
18                 false
19         }
20
21 }