From 0b31713c856a0d8c6fe2961113a9317f7c3659dc Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 22 Oct 2020 15:02:58 +0100 Subject: rpcd: adapt defaults for changed ubus.sock path Signed-off-by: Daniel Golle --- package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh (limited to 'package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh') 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 +} -- cgit v1.2.3