Openwrt/package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh

7 lines
152 B
Bash
Raw Normal View History

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