Import ubus tools.
This commit is contained in:
7
3P/ubus/systemd/CMakeLists.txt
Normal file
7
3P/ubus/systemd/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
CONFIGURE_FILE(ubus.socket.in ubus.socket)
|
||||
CONFIGURE_FILE(ubus.service.in ubus.service)
|
||||
|
||||
# Cmakes pkgconfig support is very limited, so for now just hardcode
|
||||
SET(SYSTEMD_SYSUNIT_DIR "${SYSTEMD_PREFIX}/lib/systemd/system")
|
||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/systemd/ubus.socket ${CMAKE_BINARY_DIR}/systemd/ubus.service
|
||||
DESTINATION ${SYSTEMD_SYSUNIT_DIR})
|
||||
6
3P/ubus/systemd/ubus.service.in
Normal file
6
3P/ubus/systemd/ubus.service.in
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=OpenWrt micro bus
|
||||
Requires=ubus.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=@UBUSD_BINARY@
|
||||
8
3P/ubus/systemd/ubus.socket.in
Normal file
8
3P/ubus/systemd/ubus.socket.in
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=OpenWrt micro bus socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=@UBUS_UNIX_SOCKET@
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user