projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ltq-vdsl-app: remove whitespace after -i, it prevents vdsl_cpe_control from parsing...
[librecmc/librecmc.git]
/
package
/
network
/
config
/
ltq-vdsl-app
/
files
/
dsl_cpe_pipe.sh
1
#!/bin/sh
2
3
pipe_no=0
4
5
# use specified pipe no
6
case "$1" in
7
0|1|2)
8
pipe_no=$1; shift; ;;
9
esac
10
11
12
#echo "Call dsl_pipe with $*"
13
lock /var/lock/dsl_pipe
14
echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd
15
result=`cat /tmp/pipe/dsl_cpe${pipe_no}_ack`
16
lock -u /var/lock/dsl_pipe
17
18
echo "$result"