git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ac0e0fe
)
ddns-scripts: cleanup prerm script
author
Florian Eckert
<redacted>
Wed, 16 Sep 2020 13:11:32 +0000
(15:11 +0200)
committer
Florian Eckert
<redacted>
Mon, 21 Sep 2020 08:17:01 +0000
(10:17 +0200)
Signed-off-by: Florian Eckert <redacted>
net/ddns-scripts/Makefile
patch
|
blob
|
history
diff --git
a/net/ddns-scripts/Makefile
b/net/ddns-scripts/Makefile
index f0850fe27eb48f7213c7bb71105f5f0c831c41e8..13bf82d29a830dd1bfed5f5ee12c50967ef406a2 100755
(executable)
--- a/
net/ddns-scripts/Makefile
+++ b/
net/ddns-scripts/Makefile
@@
-215,15
+215,12
@@
define Package/ddns-scripts/postinst
endef
define Package/ddns-scripts/prerm
- #!/bin/sh
- # if run within buildroot exit
- [ -n "$${IPKG_INSTROOT}" ] && exit 0
- # stop running scripts
+#!/bin/sh
+if [ -n "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
/etc/init.d/ddns disable
- # clear LuCI indexcache
- rm -f /tmp/luci-indexcache >/dev/null 2>&1
- exit 0 # suppress errors
+fi
+exit 0
endef
git clone https://git.99rst.org/PROJECT