├── .gitignore ├── README.md ├── add-feed.sh └── cd5844109a8e9dda /.gitignore: -------------------------------------------------------------------------------- 1 | key-build 2 | clean-branches.sh 3 | bin/ 4 | !scripts/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is feed included some common used packages and luci-apps for OpenWrt. 2 | 3 | #### List 4 | 5 | https://github.com/EkkoG/openwrt-packages 6 | 7 | https://github.com/EkkoG/openwrt-luci 8 | 9 | https://github.com/EkkoG/dae-dist 10 | 11 | https://github.com/EkkoG/clash-for-openclash-dist 12 | 13 | https://github.com/EkkoG/geodata-dist 14 | 15 | 16 | #### Install with scripts 17 | 18 | ``` 19 | sh -c "$(curl https://fastly.jsdelivr.net/gh/EkkoG/openwrt-dist@master/add-feed.sh)" -- all 20 | ``` 21 | 22 | #### Install sign key 23 | 24 | For Imagebuilder user, choose a url add to repositories.conf, and add `cd5844109a8e9dda` to your keys folder, if folder exist. 25 | 26 | For user who's OpenWrt is running, add feed to `/etc/opkg/customfeeds.conf`, and add the pub key. 27 | 28 | ``` 29 | wget https://github.com/ekkog/openwrt-dist/raw/master/cd5844109a8e9dda 30 | opkg-key add cd5844109a8e9dda 31 | ``` 32 | -------------------------------------------------------------------------------- /add-feed.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | global_feed=$1 4 | 5 | if [ -z "$global_feed" ]; then 6 | echo "Usage: $0 " 7 | echo "Example: $0 clash" 8 | exit 1 9 | fi 10 | 11 | . /etc/openwrt_release 12 | 13 | remove_old() { 14 | if grep -q "ekkog_$1" /etc/opkg/customfeeds.conf; then 15 | echo "Old feed already exists, remove it..." 16 | sed -i "/ekkog_$1/d" /etc/opkg/customfeeds.conf 17 | fi 18 | } 19 | 20 | add_key() { 21 | if [ -f /etc/opkg/keys/cd5844109a8e9dda ]; then 22 | echo "Key already added, skip" 23 | else 24 | echo "Add key..." 25 | wget https://github.com/ekkog/openwrt-dist/raw/master/cd5844109a8e9dda 26 | opkg-key add cd5844109a8e9dda 27 | rm cd5844109a8e9dda 28 | fi 29 | } 30 | 31 | add_packages() { 32 | remove_old $1 33 | dist_path="$1/$DISTRIB_ARCH" 34 | if [ $1 = luci ]; then 35 | dist_path="luci" 36 | fi 37 | echo "src/gz ekkog_$1 https://ghproxy.imciel.com/https://downloads.sourceforge.net/project/ekko-openwrt-dist/$dist_path" >> /etc/opkg/customfeeds.conf 38 | add_key 39 | } 40 | 41 | add_geodata() { 42 | remove_old geodata 43 | echo "src/gz ekkog_geodata https://ghproxy.imciel.com/https://downloads.sourceforge.net/project/ekko-openwrt-dist/$1" >> /etc/opkg/customfeeds.conf 44 | add_key 45 | } 46 | 47 | if [ $global_feed = all ]; then 48 | add_geodata geodata/MetaCubeX 49 | add_packages luci 50 | add_packages dae 51 | add_packages packages 52 | add_packages mihomo 53 | else 54 | # check global feed contains geodata 55 | if echo $global_feed | grep -q geodata; then 56 | add_geodata $global_feed 57 | else 58 | add_packages $global_feed 59 | fi 60 | fi 61 | -------------------------------------------------------------------------------- /cd5844109a8e9dda: -------------------------------------------------------------------------------- 1 | untrusted comment: cielpy openwrt dist sign 2 | RWTNWEQQmo6d2m4v8HCtbcfJkfiX91+OmTVEHPu7c+oVX56FPGay5Kt+ 3 | --------------------------------------------------------------------------------