浏览代码

Remove unused install script

Nick Peng 6 年之前
父节点
当前提交
5501bfb6a3
共有 2 个文件被更改,包括 1 次插入13 次删除
  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=$?