aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh
blob: 1365aed39a93a17e2273f3b69da588f15ca7dd6b (plain)
1
2
3
4
5
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
}