🐶 Sync 2024-08-05 04:48:03

This commit is contained in:
github-actions[bot] 2024-08-05 04:48:03 +08:00
parent 3137254486
commit 6aeefb2cb1
18 changed files with 28 additions and 105 deletions

View File

@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=k3screenctrl
PKG_VERSION:=0.10
PKG_RELEASE:=19
PKG_VERSION:=0.10-2
PKG_RELEASE:=20
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/updateing/k3screenctrl.git
PKG_SOURCE_VERSION:=dd05ce9a5cb0cb6cebfc6b3b5823c7f6d75796ff
PKG_SOURCE_URL:=https://github.com/lwz322/k3screenctrl.git
PKG_SOURCE_VERSION:=e123c38dffba39aed6d878c9219719356e52226e
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
@ -19,9 +19,9 @@ TARGET_CFLAGS+= -D_GNU_SOURCE
define Package/k3screenctrl
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=@(TARGET_bcm53xx_generic_DEVICE_phicomm_k3||TARGET_DEVICE_bcm53xx_generic_DEVICE_phicomm_k3) +@KERNEL_DEVMEM
DEPENDS:=@(TARGET_bcm53xx_generic_DEVICE_phicomm_k3||TARGET_bcm53xx_generic_DEVICE_phicomm-k3||TARGET_bcm53xx_DEVICE_phicomm-k3||||TARGET_DEVICE_bcm53xx_generic_DEVICE_phicomm_k3) +@KERNEL_DEVMEM +coreutils +coreutils-od +bash +curl
TITLE:=LCD screen controller on PHICOMM K3
URL:=https://github.com/updateing/k3-screen-ctrl
URL:=https://github.com/lwz322/k3screenctrl.git
endef
define Package/k3screenctrl/description
@ -33,6 +33,8 @@ define Package/k3screenctrl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/lib/k3screenctrl
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/lib/k3screenctrl/oui
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/k3screenctrl $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/wan.sh $(1)/lib/k3screenctrl/
@ -40,8 +42,11 @@ define Package/k3screenctrl/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/port.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/basic.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/host.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/weather.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/oui/oui.txt $(1)/lib/k3screenctrl/oui/
$(INSTALL_BIN) ./files/k3screenctrl.init $(1)/etc/init.d/k3screenctrl
$(INSTALL_BIN) ./files/k3screenctrl $(1)/etc/config/
endef
$(eval $(call BuildPackage,k3screenctrl))

11
k3screenctrl/files/k3screenctrl.init Executable file → Normal file
View File

@ -4,11 +4,16 @@ START=99
STOP=99
SCRIPTS_BASE=/lib/k3screenctrl/
TEMP_DIR=/tmp/k3screenctrl
start() {
/usr/bin/k3screenctrl &
mkdir -p $TEMP_DIR
mkdir -p $TEMP_DIR/device_speed
m=$(uci get k3screenctrl.@general[0].screen_time) && [ $m -lt 10 ] && m=10
d=$(uci get k3screenctrl.@general[0].refresh_time) && [ $d -lt 1 ] && d=1
/usr/bin/k3screenctrl -m $m -d $d &
}
stop() {
killall -q `which k3screenctrl`
}
killall k3screenctrl
}

View File

@ -1,16 +0,0 @@
diff -Nuar a/src/infocenter.c b/src/infocenter.c
--- a/src/infocenter.c 2017-05-02 19:49:08.000000000 +0800
+++ b/src/infocenter.c 2021-12-29 17:37:00.837529076 +0800
@@ -116,9 +116,10 @@
* be malformatted and the results are not reliable.
*/
const char *stopped_at = tokenize_and_store(out, '\n', stores, store_len);
+ int ret = *stopped_at == 0 ? SUCCESS : FAILURE;
+
free((void *)out);
-
- return *stopped_at == 0 ? SUCCESS : FAILURE;
+ return ret;
}
BASIC_INFO g_basic_info;

View File

@ -1,52 +0,0 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=k3screenctrl
PKG_VERSION:=0.10-2
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/lwz322/k3screenctrl.git
PKG_SOURCE_VERSION:=e123c38dffba39aed6d878c9219719356e52226e
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_MAINTAINER:=Hamster Tian <haotia@gmail.com>
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS+= -D_GNU_SOURCE
define Package/k3screenctrl
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=@(TARGET_bcm53xx_generic_DEVICE_phicomm_k3||TARGET_bcm53xx_generic_DEVICE_phicomm-k3||TARGET_bcm53xx_DEVICE_phicomm-k3) +@KERNEL_DEVMEM +coreutils +coreutils-od +bash +curl
TITLE:=LCD screen controller on PHICOMM K3
URL:=https://github.com/lwz322/k3screenctrl.git
endef
define Package/k3screenctrl/description
K3 Screen Controller (k3screenctrl) is a program utilizing
the LCD screen on PHICOMM K3 to display some stats.
endef
define Package/k3screenctrl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/lib/k3screenctrl
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/lib/k3screenctrl/oui
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/k3screenctrl $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/wan.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/wifi.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/port.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/basic.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/host.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/weather.sh $(1)/lib/k3screenctrl/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/k3screenctrl/oui/oui.txt $(1)/lib/k3screenctrl/oui/
$(INSTALL_BIN) ./files/k3screenctrl.init $(1)/etc/init.d/k3screenctrl
$(INSTALL_BIN) ./files/k3screenctrl $(1)/etc/config/
endef
$(eval $(call BuildPackage,k3screenctrl))

View File

@ -1,19 +0,0 @@
#!/bin/sh /etc/rc.common
START=99
STOP=99
SCRIPTS_BASE=/lib/k3screenctrl/
TEMP_DIR=/tmp/k3screenctrl
start() {
mkdir -p $TEMP_DIR
mkdir -p $TEMP_DIR/device_speed
m=$(uci get k3screenctrl.@general[0].screen_time) && [ $m -lt 10 ] && m=10
d=$(uci get k3screenctrl.@general[0].refresh_time) && [ $d -lt 1 ] && d=1
/usr/bin/k3screenctrl -m $m -d $d &
}
stop() {
killall k3screenctrl
}

View File

@ -12,5 +12,5 @@ start() {
}
stop() {
killall -q -9 `which cpulimit`
killall -9 cpulimit
}

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-homebridge
PKG_VERSION:=0.1.0
PKG_RELEASE:=12
PKG_RELEASE:=13
PKG_DATE:=20200311
PKG_LICENSE:=GPLv3

View File

@ -175,7 +175,7 @@ start_sub_service() {
stop() {
echo "stop function" >> $LOG_FILE
killall -9 `which homebridge` >> $LOG_FILE 2>&1
killall -9 homebridge >> $LOG_FILE 2>&1
# config_load homebridge
# stop_main_service
# config_foreach stop_sub_service platform

View File

@ -73,7 +73,7 @@ start()
stop()
{
killall -q `which mentohust`
killall mentohust
}
restart()

View File

@ -25,5 +25,5 @@ start() {
}
stop() {
killall -q -9 `which pppoe-relay`
killall -9 pppoe-relay
}

View File

@ -97,5 +97,5 @@ stop() {
done
fi
ps | grep "pppd plugin rp-pppoe.so" | grep -v "grep" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
killall -q -9 `which pppoe-server`
killall -q -9 pppoe-server
}

View File

@ -15,5 +15,5 @@ start() {
}
stop() {
killall -q -9 `which speedtest-web`
killall speedtest-web >/dev/null 2>&1
}

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sysuh3c
PKG_VERSION:=1.0
PKG_RELEASE:=14
PKG_RELEASE:=15
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/haswelliris/h3c.git

View File

@ -39,5 +39,5 @@ start()
stop()
{
killall -q `which sysuh3c`
killall sysuh3c >/dev/null 2>&1
}