lede/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh
2021-06-03 21:15:18 +08:00

9 lines
162 B
Bash
Executable File

#!/bin/sh
[ "$(uci get rpcd.@rpcd[0].socket)" = "/var/run/ubus.sock" ] || exit 0
uci set rpcd.@rpcd[0].socket='/var/run/ubus/ubus.sock'
uci commit rpcd
exit 0