-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiy-part1.sh
More file actions
executable file
·45 lines (35 loc) · 1.62 KB
/
diy-part1.sh
File metadata and controls
executable file
·45 lines (35 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#
# Uncomment a feed source
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
# 20230710: Using latest tag, could be rc
#version_tag="$(git tag -l|grep -v 'rc'|tail -1)"
#git checkout "$version_tag"
#llvm_tag=$(echo $version_tag|tr -d 'v')
# 20240824
version_tag="$(git tag -l|grep -v 'rc'|tail -1)"
git checkout "$version_tag"
llvm_tag=$(echo $version_tag|tr -d 'v')
#
# Add a feed source
#echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
#echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default
#echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default
echo 'src-git argontheme https://github.com/jerrykuku/luci-theme-argon.git' >> feeds.conf.default
#echo 'src-git immortalwrt https://github.com/immortalwrt/packages' >>feeds.conf.default
wget -O - https://downloads.openwrt.org/releases/"$llvm_tag"/targets/mvebu/cortexa9/llvm-bpf-18.1.7.Linux-x86_64.tar.xz | tar -xvaf -
ln -sf $(realpath llvm-bpf-18.1.7.Linux-x86_64) llvm-bpf
rm $GITHUB_WORKSPACE/$PATCH_DIR/0008-Add-divblock-an-extremely-simple-ad-blocker.patch
# Apply patches
#git am $GITHUB_WORKSPACE/$PATCH_DIR/*.patch --3way || (git checkout --theirs . && git add . && git am --continue)
# skip patch if failed.
git am $GITHUB_WORKSPACE/$PATCH_DIR/*.patch --3way || git am --skip