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 }