From 9910ecdb9218bf80ed17162e647b373bca70ed0d Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Fri, 11 Sep 2020 09:47:23 +0800 Subject: [PATCH] Create diy-part1.sh --- Scripts/diy-part1.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Scripts/diy-part1.sh diff --git a/Scripts/diy-part1.sh b/Scripts/diy-part1.sh new file mode 100644 index 0000000..ac4fc99 --- /dev/null +++ b/Scripts/diy-part1.sh @@ -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