aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh
blob: 609b0f98353de541860c6f5589b66d134583b28e (plain)
1
2
3
4
5
6
7
8
#!/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