M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#! /bin/sh -e
test -x /usr/sbin/ubusd || exit 0
case "$1" in
start)
echo -n "Starting ubusd daemon: "
start-stop-daemon -S -b -a /usr/sbin/ubusd
echo "ubusd."
;;
stop)
echo -n "Stopping ubusd daemon: "
start-stop-daemon -K -n ubusd
echo "ubuds."
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/ubusd {start|stop|restart|force-reload}"
exit 1
esac
exit 0

View File

@@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3b150b..69a973c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,8 +28,9 @@ ADD_EXECUTABLE(cli cli.c)
SET_TARGET_PROPERTIES(cli PROPERTIES OUTPUT_NAME ubus)
TARGET_LINK_LIBRARIES(cli ubus ubox blobmsg_json ${json})
-ADD_SUBDIRECTORY(lua)
-ADD_SUBDIRECTORY(examples)
+#[zhoulichao] unsupport lua and examples
+#ADD_SUBDIRECTORY(lua)
+#ADD_SUBDIRECTORY(examples)
INSTALL(TARGETS ubus cli
LIBRARY DESTINATION lib

View File

@@ -0,0 +1,30 @@
DESCRIPTION = "compiled ubus!"
#just close license for now.
LICENSE = "CLOSED"
PR = "r1"
SRCREV="8f3c5a7b50eb4642108f104d33c043da6d0f14a4"
SRC_URI = "git://nbd.name/luci2/ubus.git;protocol=git \
file://unsupport_lua.patch \
file://ubusd"
S="${WORKDIR}/git"
FILES_${PN} += "/usr/lib"
DEPENDS = "libubox"
RDEPENDS += "libubox"
inherit update-rc.d
INITSCRIPT_NAME = "ubusd"
INITSCRIPT_PARAMS = "defaults 6"
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/ubusd ${D}${sysconfdir}/init.d
}
inherit cmake