openwrt/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh
Daniel Golle 0b31713c85 rpcd: adapt defaults for changed ubus.sock path
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-22 15:13:38 +01:00

7 lines
152 B
Bash
Executable File

#!/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
}