Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ubus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
ubus
Commits
7ff71236
Commit
7ff71236
authored
Jun 24, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubus package no longer provides systemd unit files - we should provide our own
parent
9ec7cb70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
Makefile
Makefile
+28
-4
No files found.
Makefile
View file @
7ff71236
all
:
all
:
ubus-service ubus-socket
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
mv
/usr/lib/systemd/system/ubus.socket /lib/systemd/system/ubus.socket
mv
/usr/lib/systemd/system/ubus.service /lib/systemd/system/
ubus.service
ln
-s
/lib/systemd/system/ubus.service /etc/systemd/system/multi-user.target.wants/ubus.service
@
echo
"
$$
UBUS_SERVICE"
>
/lib/systemd/system/ubus.service
systemctl
enable
ubus.service
@
echo
"
$$
UBUS_SOCKET"
>
/lib/systemd/system/ubus.socket
rm
-rf
ubus
ubus-service
:
define
UBUS_SERVICE
[Unit]
Description
=
OpenWrt micro bus
Requires
=
ubus.socket
[Service]
ExecStart
=
/usr/sbin/ubusd
endef
export
UBUS_SERVICE
ubus-socket
:
define
UBUS_SOCKET
[Unit]
Description
=
OpenWrt micro bus socket
[Socket]
ListenStream
=
/run/ubus.sock
[Install]
WantedBy
=
sockets.target
endef
export
UBUS_SOCKET
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment