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
+25
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
@@ -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