@@ -60,7 +60,8 @@ srcmirror="https://sources.openwrt.org;https://firmware.berlin.freifunk.net/sour
60
60
# srcmirror="http://192.168.1.1/sources.openwrt.org;http://192.168.1.1/firmware.berlin.freifunk.net/sources"
61
61
62
62
# Mirror URL for Git repositories in feeds.conf
63
- gitmirror=" https://git.openwrt.org"
63
+ # gitmirror="https://git.openwrt.org"
64
+ gitmirror=github
64
65
# gitmirror="file:///mnt/mirror/git.openwrt.org"
65
66
# gitmirror="http://192.168.1.1/git.openwrt.org"
66
67
@@ -95,7 +96,13 @@ unbuf="stdbuf --output=0 --error=0"
95
96
ln -sfT " $( pwd) /packages" ./tmp/feed/packages
96
97
ln -sfT " $( pwd) /luci" ./tmp/feed/luci
97
98
cp " $sdkdir /feeds.conf.default" " $sdkdir /feeds.conf"
98
- if [ " $gitmirror " != " https://git.openwrt.org" ]; then
99
+ if [ " $gitmirror " == " github" ]; then
100
+ sed -i " s|https://git.openwrt.org/openwrt/openwrt.git|https://github.com/openwrt/openwrt.git|g" " $sdkdir /feeds.conf"
101
+ sed -i " s|https://git.openwrt.org/feed/packages.git|https://github.com/openwrt/packages.git|g" " $sdkdir /feeds.conf"
102
+ sed -i " s|https://git.openwrt.org/project/luci.git|https://github.com/openwrt/luci.git|g" " $sdkdir /feeds.conf"
103
+ sed -i " s|https://git.openwrt.org/feed/routing.git|https://github.com/openwrt/routing.git|g" " $sdkdir /feeds.conf"
104
+ sed -i " s|https://git.openwrt.org/feed/telephony.git|https://github.com/openwrt/telephony.git|g" " $sdkdir /feeds.conf"
105
+ elif [ " $gitmirror " != " https://git.openwrt.org" ]; then
99
106
sed -i " s|https://git.openwrt.org/openwrt|$gitmirror |g" " $sdkdir /feeds.conf"
100
107
sed -i " s|https://git.openwrt.org/feed|$gitmirror |g" " $sdkdir /feeds.conf"
101
108
sed -i " s|https://git.openwrt.org/project|$gitmirror |g" " $sdkdir /feeds.conf"
0 commit comments