diff options
author | John Crispin <blogic@openwrt.org> | 2015-11-24 20:41:18 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-11-24 20:41:18 +0000 |
commit | c32e23ddb86856918343f099e29c1ac00f351a75 (patch) | |
tree | dd7bbbdb21eae08447ad7ba9e62f4d81369136ee /package/network/config/ltq-vdsl-app/files | |
parent | 295fc2175602d8572972c1036eb9d790dfa92b72 (diff) | |
download | master-187ad058-c32e23ddb86856918343f099e29c1ac00f351a75.tar.gz master-187ad058-c32e23ddb86856918343f099e29c1ac00f351a75.tar.bz2 master-187ad058-c32e23ddb86856918343f099e29c1ac00f351a75.zip |
lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47636 3c298f89-4303-0410-b956-a3cf2f4a3e73
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" |