safe-search: fix typos in package scripting
authorPhilip Prindeville <redacted>
Fri, 26 Feb 2021 22:39:01 +0000 (15:39 -0700)
committerPhilip Prindeville <redacted>
Fri, 26 Feb 2021 22:39:21 +0000 (15:39 -0700)
Signed-off-by: Philip Prindeville <redacted>
net/safe-search/Makefile

index c016d29bf5308852778b29f7cfaf1f55003a6de0..193d629dca9541eae138340436c61813fe4f5115 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=safe-search
 PKG_VERSION:=2.0.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=MIT
 PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
 
@@ -53,7 +53,7 @@ endef
 
 define Package/safe-search/postinst
 #!/bin/sh
-if [ -z "$${IPGK_INSTROOT}" ]; then
+if [ -z "$${IPKG_INSTROOT}" ]; then
   echo "0 * * * * /bin/nice /usr/sbin/safe-search-maintenance>/dev/null 2>&1">>/etc/crontabs/root
   /etc/init.d/cron restart
 fi
@@ -62,7 +62,7 @@ endef
 
 define Package/safe-search/prerm
 #!/bin/sh
-if [ -z "$${IPGK_INSTROOT}" ]; then
+if [ -z "$${IPKG_INSTROOT}" ]; then
        uci del_list dhcp.@dnsmasq[0].addnhosts=/etc/safe-search/enabled
        uci commit dhcp
        /etc/init.d/dnsmasq reload
@@ -73,7 +73,7 @@ endef
 
 define Package/safe-search/postrm
 #!/bin/sh
-if [ -z "$${IPGK_INSTROOT}" ]; then
+if [ -z "$${IPKG_INSTROOT}" ]; then
        rm -rf /etc/safe-search/enabled
        rmdir /etc/safe-search/available
        rmdir /etc/safe-search/
git clone https://git.99rst.org/PROJECT