Browse Source

Remove unused install script

Nick Peng 6 years ago
parent
commit
5501bfb6a3
2 changed files with 1 additions and 13 deletions
  1. 1 0
      etc/smartdns/smartdns.conf
  2. 0 13
      package/openwrt/control/postinst

+ 1 - 0
etc/smartdns/smartdns.conf

@@ -120,3 +120,4 @@ log-level info
 # ipset /domain/[ipset|-]
 # ipset /www.example.com/block, set ipset with ipset name of block 
 # ipset /www.example.com/-, ignore this domain
+

+ 0 - 13
package/openwrt/control/postinst

@@ -5,19 +5,6 @@ chmod +x /etc/init.d/smartdns
 mkdir -p /var/etc/smartdns/
 
 [ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
-
-if [ ! -f "/var/etc/smartdns/address.conf" ]; then
-    cp /etc/smartdns/address.conf /var/etc/smartdns/address.conf
-fi
-
-if [ ! -f "/var/etc/smartdns/blacklist-ip.conf" ]; then
-    cp /etc/smartdns/blacklist-ip.conf /var/etc/smartdns/blacklist-ip.conf
-fi
-
-if [ ! -f "/var/etc/smartdns/custom.conf" ]; then
-    cp /etc/smartdns/custom.conf /var/etc/smartdns/custom.conf
-fi
-
 . ${IPKG_INSTROOT}/lib/functions.sh
 default_postinst $0 $@
 ret=$?