Merge code from BETA Repo
This commit is contained in:
		
							parent
							
								
									7eded2ba9e
								
							
						
					
					
						commit
						58e1cdf075
					
				
							
								
								
									
										1
									
								
								.config
								
								
								
								
							
							
						
						
									
										1
									
								
								.config
								
								
								
								
							|  | @ -47,6 +47,7 @@ CONFIG_PACKAGE_luci-app-socat=y | ||||||
| CONFIG_PACKAGE_luci-app-syncdial=y | CONFIG_PACKAGE_luci-app-syncdial=y | ||||||
| CONFIG_PACKAGE_luci-app-ttyd=y | CONFIG_PACKAGE_luci-app-ttyd=y | ||||||
| CONFIG_PACKAGE_luci-app-unblockmusic=y | CONFIG_PACKAGE_luci-app-unblockmusic=y | ||||||
|  | CONFIG_PACKAGE_luci-app-usb-printer=y | ||||||
| CONFIG_PACKAGE_luci-app-vsftpd=y | CONFIG_PACKAGE_luci-app-vsftpd=y | ||||||
| CONFIG_PACKAGE_luci-app-zerotier=y | CONFIG_PACKAGE_luci-app-zerotier=y | ||||||
| CONFIG_PACKAGE_6rd=y | CONFIG_PACKAGE_6rd=y | ||||||
|  |  | ||||||
|  | @ -1,23 +0,0 @@ | ||||||
| 
 |  | ||||||
| config globals 'globals' |  | ||||||
| 	option mmx_mask '0x3F00' |  | ||||||
| 	option rtmon_interval '5' |  | ||||||
| 
 |  | ||||||
| config member 'wan_m1_w3' |  | ||||||
| 	option interface 'wan' |  | ||||||
| 	option metric '1' |  | ||||||
| 	option weight '3' |  | ||||||
| 
 |  | ||||||
| config policy 'balanced' |  | ||||||
| 	option last_resort 'unreachable' |  | ||||||
| 	list use_member 'wan_m1_w3' |  | ||||||
| 
 |  | ||||||
| config rule 'https' |  | ||||||
| 	option sticky '1' |  | ||||||
| 	option dest_port '443' |  | ||||||
| 	option proto 'tcp' |  | ||||||
| 	option use_policy 'balanced' |  | ||||||
| 
 |  | ||||||
| config rule 'default_rule' |  | ||||||
| 	option dest_ip '0.0.0.0/0' |  | ||||||
| 	option use_policy 'balanced' |  | ||||||
|  | @ -21,7 +21,6 @@ ExtraPackages svn network/services dnsmasq https://github.com/openwrt/openwrt/tr | ||||||
| ExtraPackages svn network/services hostapd https://github.com/openwrt/openwrt/trunk/package/network/services | ExtraPackages svn network/services hostapd https://github.com/openwrt/openwrt/trunk/package/network/services | ||||||
| ExtraPackages svn network/services dropbear https://github.com/openwrt/openwrt/trunk/package/network/services | ExtraPackages svn network/services dropbear https://github.com/openwrt/openwrt/trunk/package/network/services | ||||||
| ExtraPackages svn network/services ppp https://github.com/openwrt/openwrt/trunk/package/network/services | ExtraPackages svn network/services ppp https://github.com/openwrt/openwrt/trunk/package/network/services | ||||||
| # ExtraPackages svn network/config firewall https://github.com/openwrt/openwrt/trunk/package/network/config |  | ||||||
| # ExtraPackages git kernel mt76 https://github.com/openwrt master | # ExtraPackages git kernel mt76 https://github.com/openwrt master | ||||||
| 
 | 
 | ||||||
| ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main | ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main | ||||||
|  | @ -43,7 +42,6 @@ ExtraPackages svn lean luci-app-socat https://github.com/xiaorouji/openwrt-packa | ||||||
| Diy-Part2() { | Diy-Part2() { | ||||||
| GET_TARGET_INFO | GET_TARGET_INFO | ||||||
| ExtraPackages svn feeds/packages mwan3 https://github.com/openwrt/packages/trunk/net | ExtraPackages svn feeds/packages mwan3 https://github.com/openwrt/packages/trunk/net | ||||||
| # Replace_File mwan3 package/feeds/packages/mwan3/files/etc/config |  | ||||||
| echo "Author: $Author" | echo "Author: $Author" | ||||||
| echo "Openwrt Version: $Openwrt_Version" | echo "Openwrt Version: $Openwrt_Version" | ||||||
| echo "AutoUpdate Version: $AutoUpdate_Version" | echo "AutoUpdate Version: $AutoUpdate_Version" | ||||||
|  | @ -103,7 +101,7 @@ do | ||||||
| 		svn checkout $REPO_URL/$PKG_NAME $PKG_NAME > /dev/null 2>&1 | 		svn checkout $REPO_URL/$PKG_NAME $PKG_NAME > /dev/null 2>&1 | ||||||
| 	esac | 	esac | ||||||
| 	if [ -e $PKG_NAME/Makefile ] || [ -e $PKG_NAME/README* ];then | 	if [ -e $PKG_NAME/Makefile ] || [ -e $PKG_NAME/README* ];then | ||||||
| 		echo "[$(date "+%H:%M:%S")] [Done] Package [$PKG_NAME] is detected!" | 		echo "[$(date "+%H:%M:%S")] Package [$PKG_NAME] is detected!" | ||||||
| 		mv $PKG_NAME package/$PKG_DIR | 		mv $PKG_NAME package/$PKG_DIR | ||||||
| 		break | 		break | ||||||
| 	else | 	else | ||||||
|  | @ -120,8 +118,10 @@ Replace_File() { | ||||||
| FILE_NAME=$1 | FILE_NAME=$1 | ||||||
| PATCH_DIR=$GITHUB_WORKSPACE/openwrt/$2 | PATCH_DIR=$GITHUB_WORKSPACE/openwrt/$2 | ||||||
| FILE_RENAME=$3 | FILE_RENAME=$3 | ||||||
| [ ! -d $PATCH_DIR ] && mkdir $PATCH_DIR | 
 | ||||||
| if [ -e $GITHUB_WORKSPACE/Customize/$FILE_NAME ];then | [ ! -d $PATCH_DIR ] && mkdir -p $PATCH_DIR | ||||||
|  | if [ -f $GITHUB_WORKSPACE/Customize/$FILE_NAME ];then | ||||||
|  | 	if [ -e $GITHUB_WORKSPACE/Customize/$FILE_NAME ];then | ||||||
| 		echo "[$(date "+%H:%M:%S")] Customize File [$FILE_NAME] is detected!" | 		echo "[$(date "+%H:%M:%S")] Customize File [$FILE_NAME] is detected!" | ||||||
| 		if [ -z $FILE_RENAME ];then | 		if [ -z $FILE_RENAME ];then | ||||||
| 			[ -e $PATCH_DIR/$FILE_NAME ] && rm -f $PATCH_DIR/$FILE_NAME | 			[ -e $PATCH_DIR/$FILE_NAME ] && rm -f $PATCH_DIR/$FILE_NAME | ||||||
|  | @ -130,7 +130,15 @@ if [ -e $GITHUB_WORKSPACE/Customize/$FILE_NAME ];then | ||||||
| 			[ -e $PATCH_DIR/$FILE_NAME ] && rm -f $PATCH_DIR/$3 | 			[ -e $PATCH_DIR/$FILE_NAME ] && rm -f $PATCH_DIR/$3 | ||||||
| 			mv -f $GITHUB_WORKSPACE/Customize/$FILE_NAME $PATCH_DIR/$3 | 			mv -f $GITHUB_WORKSPACE/Customize/$FILE_NAME $PATCH_DIR/$3 | ||||||
| 		fi | 		fi | ||||||
| else | 	else | ||||||
| 		echo "[$(date "+%H:%M:%S")] Customize File [$FILE_NAME] is not detected,skip move ..." | 		echo "[$(date "+%H:%M:%S")] Customize File [$FILE_NAME] is not detected,skip move ..." | ||||||
|  | 	fi | ||||||
|  | else | ||||||
|  | 	if [ -d $GITHUB_WORKSPACE/Customize/$FILE_NAME ];then | ||||||
|  | 		echo "[$(date "+%H:%M:%S")] Customize Folder [$FILE_NAME] is detected !" | ||||||
|  | 		mv -f $GITHUB_WORKSPACE/Customize/$FILE_NAME $PATCH_DIR | ||||||
|  | 	else | ||||||
|  | 		echo "[$(date "+%H:%M:%S")] Customize Folder [$FILE_NAME] is not detected,skip move ..." | ||||||
|  | 	fi | ||||||
| fi | fi | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue