Browse Source

ddns-scripts: cleanup prerm script

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
37045562d9
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      net/ddns-scripts/Makefile

+ 4
- 7
net/ddns-scripts/Makefile View File

@ -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


Loading…
Cancel
Save