Skip to content

Commit

Permalink
add distfeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffany-929 committed Jul 11, 2024
1 parent d8586f4 commit 7bad303
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/emortal/default-settings/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions package/emortal/default-settings/files/99-default-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions package/emortal/default-settings/files/99-distfeeds.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7bad303

Please sign in to comment.