rpcd: remove file when applied
Make sure exit value of this script is zero. Or the file won't be deleted. Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
This commit is contained in:
parent
8d7a6d48eb
commit
86917e4979
2 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=rpcd
|
PKG_NAME:=rpcd
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/rpcd.git
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ "$(uci get rpcd.@rpcd[0].socket)" = "/var/run/ubus.sock" ] && {
|
[ "$(uci get rpcd.@rpcd[0].socket)" = "/var/run/ubus.sock" ] || exit 0
|
||||||
uci set rpcd.@rpcd[0].socket='/var/run/ubus/ubus.sock'
|
|
||||||
uci commit rpcd
|
uci set rpcd.@rpcd[0].socket='/var/run/ubus/ubus.sock'
|
||||||
}
|
uci commit rpcd
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue