This matches the scheme used by other target packages and will avoid confusion with any future version. Signed-off-by: Andre Heider <a.heider@gmail.com>
19 lines
280 B
Bash
Executable File
19 lines
280 B
Bash
Executable File
#!/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"
|