diff options
author | John Crispin <john@openwrt.org> | 2015-11-24 20:41:18 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-11-24 20:41:18 +0000 |
commit | 41587675ecf23b4cc092c302666bf39ae277c21c (patch) | |
tree | 52411e82baaab2455121d1e00da43d232c707fbb /package/network/config/ltq-vdsl-app/files | |
parent | 091b668f1a84e949d43e056c518ee69e55f41c44 (diff) | |
download | upstream-41587675ecf23b4cc092c302666bf39ae277c21c.tar.gz upstream-41587675ecf23b4cc092c302666bf39ae277c21c.tar.bz2 upstream-41587675ecf23b4cc092c302666bf39ae277c21c.zip |
lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
SVN-Revision: 47636
Diffstat (limited to 'package/network/config/ltq-vdsl-app/files')
-rwxr-xr-x | package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh b/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh new file mode 100755 index 0000000000..30393b281e --- /dev/null +++ b/package/network/config/ltq-vdsl-app/files/dsl_cpe_pipe.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +pipe_no=0 + +# use specified pipe no +case "$1" in +0|1|2) +pipe_no=$1; shift; ;; +esac + + +#echo "Call dsl_pipe with $*" +lock /var/lock/dsl_pipe +echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd +result=`cat /tmp/pipe/dsl_cpe${pipe_no}_ack` +lock -u /var/lock/dsl_pipe + +echo "$result" |