ubus.default 251 B

1234567891011
  1. #!/bin/sh
  2. if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
  3. uci set uhttpd.main.ubus_prefix=/ubus
  4. fi
  5. [ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
  6. uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
  7. }
  8. exit 0