Commit 0f216194 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Changed location of socket file to /run

parent c6dfdbcd
all:
tar xf ubus.tar.xz
patch -Np1 -d ubus < ubus-use_run.patch
cd ubus && cmake CMakeLists.txt -DBUILD_LUA=OFF -DCMAKE_INSTALL_PREFIX=/usr
$(MAKE) -C ubus
$(MAKE) -C ubus install
......
diff -uNr ubus/CMakeLists.txt ubus-use_run/CMakeLists.txt
--- ubus/CMakeLists.txt 2017-09-09 01:15:05.000000000 +0930
+++ ubus-use_run/CMakeLists.txt 2020-06-17 12:47:54.222657187 +0930
@@ -8,7 +8,7 @@
OPTION(ENABLE_SYSTEMD "systemd support" ON)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
-SET(UBUS_UNIX_SOCKET "/var/run/ubus.sock")
+SET(UBUS_UNIX_SOCKET "/run/ubus.sock")
SET(UBUS_MAX_MSGLEN 1048576)
ADD_DEFINITIONS( -DUBUS_UNIX_SOCKET="${UBUS_UNIX_SOCKET}")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment