diff options
author | Daniel Golle <daniel@makrotopia.org> | 2020-10-22 15:02:58 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2020-10-22 15:13:38 +0100 |
commit | 0b31713c856a0d8c6fe2961113a9317f7c3659dc (patch) | |
tree | cc2e996cc49909ceb10eda757a599e795b2377e0 /package/system/rpcd/files | |
parent | 061904d7e339db9cbc966506e1d72b9433bdf353 (diff) | |
download | upstream-0b31713c856a0d8c6fe2961113a9317f7c3659dc.tar.gz upstream-0b31713c856a0d8c6fe2961113a9317f7c3659dc.tar.bz2 upstream-0b31713c856a0d8c6fe2961113a9317f7c3659dc.zip |
rpcd: adapt defaults for changed ubus.sock path
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/system/rpcd/files')
-rwxr-xr-x | package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh | 6 | ||||
-rw-r--r-- | package/system/rpcd/files/rpcd.config | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh b/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh new file mode 100755 index 0000000000..1365aed39a --- /dev/null +++ b/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +[ "$(uci get rpcd.@rpcd[0].socket)" = "/var/run/ubus.sock" ] && { + uci set rpcd.@rpcd[0].socket='/var/run/ubus/ubus.sock' + uci commit rpcd +} diff --git a/package/system/rpcd/files/rpcd.config b/package/system/rpcd/files/rpcd.config index faaed7f538..176c643f17 100644 --- a/package/system/rpcd/files/rpcd.config +++ b/package/system/rpcd/files/rpcd.config @@ -1,5 +1,5 @@ config rpcd - option socket /var/run/ubus.sock + option socket /var/run/ubus/ubus.sock option timeout 30 config login |