lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

SVN-Revision: 47636
This commit is contained in:
John Crispin 2015-11-24 20:41:18 +00:00
parent 091b668f1a
commit 41587675ec
2 changed files with 21 additions and 1 deletions

View File

@ -54,7 +54,8 @@ CONFIGURE_ARGS += \
--disable-soap-support \ --disable-soap-support \
--enable-dsl-bonding=no \ --enable-dsl-bonding=no \
--enable-debug-prints=err \ --enable-debug-prints=err \
--disable-dti --disable-dti \
--enable-debug
ifeq ($(CONFIG_IFX_CLI),y) ifeq ($(CONFIG_IFX_CLI),y)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
@ -73,6 +74,7 @@ define Package/ltq-vdsl-app/install
$(INSTALL_BIN) ./files/vdsl_cpe_control_wrapper $(1)/sbin/ $(INSTALL_BIN) ./files/vdsl_cpe_control_wrapper $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
$(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/
endef endef
$(eval $(call BuildPackage,ltq-vdsl-app)) $(eval $(call BuildPackage,ltq-vdsl-app))

View File

@ -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"