projects
/
openwrt
/
staging
/
nbd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
uhttpd: handle reload after uhttpd-mod-ubus installation using postinst
[openwrt/staging/nbd.git]
/
package
/
network
/
services
/
uhttpd
/
files
/
ubus.default
1
#!/bin/sh
2
3
if
[
-z
"$(uci -q get uhttpd.main.ubus_prefix)"
];
then
4
uci
set
uhttpd.main.ubus_prefix
=/
ubus
5
fi
6
7
[
"$(uci -q get uhttpd.main.ubus_socket)"
=
"/var/run/ubus.sock"
] && {
8
uci
set
uhttpd.main.ubus_socket
=
'/var/run/ubus/ubus.sock'
9
}
10
11
exit
0