generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdiy-part2.sh
executable file
·41 lines (35 loc) · 1.59 KB
/
diy-part2.sh
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
#!/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-part2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
#
# Modify default IP
#sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate
#luci-theme-argon and luci-app-argon-config
# cd package
# git clone https://github.com/jerrykuku/luci-theme-argon.git
# git clone https://github.com/jerrykuku/luci-app-argon-config.git
# patch for libfring which causes build to fail https://github.com/openwrt/packages/issues/23621
if [[ "$REPO_BRANCH" == "v23.05.3" ]]; then
[ -e "$GITHUB_WORKSPACE"/patches/999-issue-23621.patch ] && mkdir -p feeds/packages/libs/libpfring/patches/ && cp "$GITHUB_WORKSPACE"/patches/999-issue-23621.patch "$_"
fi
# copy Archer C6 V2 BDF
if [[ "$CONFIG_FILE" =~ ^"archer-c6-v2" ]]; then
[ -e "$GITHUB_WORKSPACE"/archer-c6-v2-files/board-2.bin ] && mkdir -p files/lib/firmware/ath10k/QCA9888/hw2.0/ && cp "$GITHUB_WORKSPACE"/archer-c6-v2-files/board-2.bin "$_"
fi
if [[ $REPO_BRANCH =~ ^"v" ]]; then
sed -i "s/SNAPSHOT/${REPO_BRANCH/"v"}/" .config
sed -i '/CONFIG_VERSION_CODE_FILENAMES=y/d' .config
elif [[ $REPO_BRANCH =~ ^"openwrt-" ]]; then
sed -i "s/\(SNAPSHOT\)/${REPO_BRANCH/"openwrt-"}-\1/" .config
fi
if [[ "$REPO_BRANCH" == *"24.10"* ]]; then
sed -i '/CONFIG_PACKAGE_px5g-mbedtls=y/i CONFIG_PACKAGE_owut=y' .config
echo "RELEASE_PACKAGE=${RELEASE_PACKAGE/usteer/usteer, owut}" >> "$GITHUB_ENV"
fi