mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-02 01:08:05 +00:00
0d9ac0d089
Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: maurerr <mariusd84@gmail.com>
14 lines
289 B
Bash
14 lines
289 B
Bash
#!/bin/sh
|
|
|
|
if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
|
|
uci set uhttpd.main.ubus_prefix=/ubus
|
|
uci commit uhttpd
|
|
fi
|
|
|
|
[ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
|
|
uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
|
|
uci commit uhttpd
|
|
}
|
|
|
|
exit 0
|