mirror of https://github.com/OpenIPC/firmware.git
remove libimp-control; deprecated; moving to plugins (#1297)
parent
9c85071327
commit
47a119121e
|
@ -111,5 +111,4 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/yaml-cli/Config.in"
|
||||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/zerotier-one/Config.in"
|
source "$BR2_EXTERNAL_GENERAL_PATH/package/zerotier-one/Config.in"
|
||||||
|
|
||||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/ingenic-diag-tools/Config.in"
|
source "$BR2_EXTERNAL_GENERAL_PATH/package/ingenic-diag-tools/Config.in"
|
||||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/ingenic-libimp-control/Config.in"
|
|
||||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/ingenic-pwm/Config.in"
|
source "$BR2_EXTERNAL_GENERAL_PATH/package/ingenic-pwm/Config.in"
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
config BR2_PACKAGE_INGENIC_LIBIMP_CONTROL
|
|
||||||
bool "libimp_control"
|
|
||||||
help
|
|
||||||
Library for on the fly adjustments to the IMP Library
|
|
|
@ -1,21 +0,0 @@
|
||||||
################################################################################
|
|
||||||
#
|
|
||||||
# ingenic-libimp-control
|
|
||||||
#
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
INGENIC_LIBIMP_CONTROL_SITE = $(call github,gtxaspec,libimp_control,$(INGENIC_LIBIMP_CONTROL_VERSION))
|
|
||||||
INGENIC_LIBIMP_CONTROL_VERSION = master
|
|
||||||
|
|
||||||
define INGENIC_LIBIMP_CONTROL_BUILD_CMDS
|
|
||||||
$(MAKE) CONFIG_SOC=$(OPENIPC_SOC_MODEL) CROSS_COMPILE=$(TARGET_CROSS) -C $(@D)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define INGENIC_LIBIMP_CONTROL_INSTALL_TARGET_CMDS
|
|
||||||
$(INSTALL) -D -m 0755 $(@D)/libimp_control.so $(TARGET_DIR)/usr/lib
|
|
||||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(INGENIC_LIBIMP_CONTROL_PKGDIR)/src/imp-control.sh
|
|
||||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
|
|
||||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(INGENIC_LIBIMP_CONTROL_PKGDIR)/src/S96impconfig
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(generic-package))
|
|
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
start() {
|
|
||||||
[ ! -f "/etc/imp.conf" ] && return
|
|
||||||
|
|
||||||
echo -n "Restoring IMP Configuration: "
|
|
||||||
while read -r line; do
|
|
||||||
imp-control.sh $line
|
|
||||||
done < /etc/imp.conf
|
|
||||||
echo "OK"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
restart() {
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start|stop|restart|reload)
|
|
||||||
"$1"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {start|restart|reload}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# This script provides a control interface for the libimp_control library.
|
|
||||||
# It sends commands to the server listening on localhost port 4000.
|
|
||||||
|
|
||||||
# Send the command and parameters to the server
|
|
||||||
echo "imp_control $*" | nc localhost 4000
|
|
Loading…
Reference in New Issue