diff --git a/package/emortal/default-settings/Makefile b/package/emortal/default-settings/Makefile index 65a6f52a061..75e4f373367 100644 --- a/package/emortal/default-settings/Makefile +++ b/package/emortal/default-settings/Makefile @@ -30,6 +30,9 @@ define Build/Compile endef define Package/default-settings/install + $(INSTALL_DIR) $(1)/etc + $(INSTALL_DATA) ./files/99-distfeeds.conf $(1)/etc/99-distfeeds.conf + $(INSTALL_DIR) $(1)/etc/uci-defaults $(INSTALL_BIN) ./files/99-default-settings $(1)/etc/uci-defaults/ endef diff --git a/package/emortal/default-settings/files/99-default-settings b/package/emortal/default-settings/files/99-default-settings index db753461ccd..5f26c3e7d6f 100755 --- a/package/emortal/default-settings/files/99-default-settings +++ b/package/emortal/default-settings/files/99-default-settings @@ -17,4 +17,7 @@ echo "log-facility=/dev/null" >> "/etc/dnsmasq.conf" ln -sf "/sbin/ip" "/usr/bin/ip" +[ -f '/etc/99-distfeeds.conf' ] && mv '/etc/99-distfeeds.conf' '/etc/opkg/distfeeds.conf' +sed -ri '/check_signature/s@^[^#]@#&@' /etc/opkg.conf + exit 0 diff --git a/package/emortal/default-settings/files/99-distfeeds.conf b/package/emortal/default-settings/files/99-distfeeds.conf new file mode 100644 index 00000000000..a6b3d19e3d8 --- /dev/null +++ b/package/emortal/default-settings/files/99-distfeeds.conf @@ -0,0 +1,5 @@ +src/gz openwrt_base https://mirror.nju.edu.cn/immortalwrt/snapshots/packages/aarch64_cortex-a53/base/ +src/gz openwrt_luci https://mirror.nju.edu.cn/immortalwrt/snapshots/packages/aarch64_cortex-a53/luci/ +src/gz openwrt_packages https://mirror.nju.edu.cn/immortalwrt/snapshots/packages/aarch64_cortex-a53/packages +src/gz openwrt_routing https://mirror.nju.edu.cn/immortalwrt/snapshots/packages/aarch64_cortex-a53/routing +src/gz openwrt_telephony https://mirror.nju.edu.cn/immortalwrt/snapshots/packages/aarch64_cortex-a53/telephony \ No newline at end of file