Create diy-part1.sh

This commit is contained in:
Hyy2001X 2020-09-11 09:47:23 +08:00 committed by GitHub
parent fb5892ece7
commit 9910ecdb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
Scripts/diy-part1.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
ExtraPackages_GIT() {
[ -d ./package/lean/$1 ] && rm -rf ./package/lean/$1
while [ ! -f $1/Makefile ]
do
git clone -b $3 $2/$1 $1
done
mv $1 ./package/lean
}
ExtraPackages_SVN() {
[ -d ./package/lean/$1 ] && rm -rf ./package/lean/$1
while [ ! -f $1/Makefile ]
do
echo "Checking out $1 from $2 ..."
svn checkout $2/$1 $1 > /dev/null 2>&1
done
echo "Package $1 detected!"
mv $1 ./package/lean
}
sed -i "s/#src-git helloworld/src-git helloworld/g" feeds.conf.default
ExtraPackages_GIT luci-theme-argon https://github.com/jerrykuku 18.06
ExtraPackages_SVN luci-app-openclash https://github.com/vernesong/OpenClash/trunk
ExtraPackages_SVN luci-app-adguardhome https://github.com/project-openwrt/openwrt/trunk/package/ctcgfw
ExtraPackages_SVN AdGuardHome https://github.com/project-openwrt/openwrt/trunk/package/ntlf9t
ExtraPackages_SVN luci-app-smartdns https://github.com/project-openwrt/openwrt/trunk/package/ntlf9t
ExtraPackages_SVN smartdns https://github.com/project-openwrt/openwrt/trunk/package/ntlf9t
[ -d ./Openwrt-AutoUpdate ] && rm -rf ./Openwrt-AutoUpdate
git clone https://github.com/Hyy2001X/Openwrt-AutoUpdate
mv Openwrt-AutoUpdate/AutoUpdate.sh ./package/base-files/files/bin