Compare commits
400 Commits
907c4bc28b
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| a46bbb850a | |||
| 7f09a92903 | |||
| 5c64e19ef5 | |||
| 16e401789a | |||
| f3831e097d | |||
| 13c7fbd87e | |||
| cfab86865d | |||
| 5b9f1f2f39 | |||
| c5bfc7907b | |||
| 533b0b5ffc | |||
| eba54804d3 | |||
| 09b62923a8 | |||
| 960755e6a2 | |||
| 0fa9b0d85a | |||
| 4de18e6696 | |||
| 3772d373bb | |||
| b75597946d | |||
| 018a91e216 | |||
| 0c61a27b06 | |||
| 675ed5eb39 | |||
| 94f60e30b1 | |||
| e8ccb76cc6 | |||
| 4274f876a7 | |||
| 4760c84bff | |||
| 20b3f7f4ec | |||
| f178e39a28 | |||
| c7b954252d | |||
| 18929109a2 | |||
| 8d24cb96a9 | |||
| 9be43af11a | |||
| ce2e85d197 | |||
| aeead798c3 | |||
| 72355bb65a | |||
| 3053b24063 | |||
| 186fe21d73 | |||
| d63a909d54 | |||
| 9128c453f3 | |||
| ffbd193b79 | |||
| 5259c72de4 | |||
| 045f43b51f | |||
| 89cc3cddeb | |||
| cd7449dd7c | |||
| 2b35e1e017 | |||
| 983f9ecb04 | |||
| b5f567ce2b | |||
| a16e713895 | |||
| 70d24d7fae | |||
| d5069d4c40 | |||
| 718b29cfe8 | |||
| e3ce0b6e57 | |||
| 3ba76a4e8d | |||
| 4f1f145a10 | |||
| 2123205ca0 | |||
| e510f8ccb6 | |||
| da398172e8 | |||
| 12067ac09b | |||
| cf2c35b114 | |||
| 5629472aa3 | |||
| a7a85ee67a | |||
| 4890aa192d | |||
| 819ff0add0 | |||
| 149da1be87 | |||
| 6f1bc4dd00 | |||
| 5d434f031d | |||
| 25b5623a65 | |||
| 20477c21ab | |||
| 8ed85fff2b | |||
| ab8f58ca92 | |||
| 20e11b7419 | |||
| 11c28c7ab3 | |||
| 908664b185 | |||
| 40ce9940ae | |||
| 64ffeeca17 | |||
| 0106ac7eff | |||
| 86f5bf7e3f | |||
| a18d467c4f | |||
| 3a659b4798 | |||
| 7f996e7724 | |||
| 3688539a90 | |||
| c28d7683d8 | |||
| a5b559c59c | |||
| d22d21148c | |||
| 2b4dac7ef3 | |||
| 498f8a7333 | |||
| d28f2e8c31 | |||
| ca3f1e82ed | |||
| 4b66de068b | |||
| 1e88f1b912 | |||
| cbe7e0468d | |||
| a664b70cf4 | |||
| b5199d5682 | |||
| 35ec2993cc | |||
| e4838f361e | |||
| f32b8c84b0 | |||
| f34953b3cc | |||
| e91394ee00 | |||
| a40ac543e9 | |||
| 06a3209046 | |||
| 5ef6d2dc0f | |||
| 36c0786255 | |||
| 25e66b3d19 | |||
| aa24a58aae | |||
| 7298fca349 | |||
| 7191e10f91 | |||
| e80dddf9a7 | |||
| 481e2e2277 | |||
| de84a404f0 | |||
| a5d57fdd3d | |||
| 732233df32 | |||
| 93a962a008 | |||
| ed13912034 | |||
| 2ee0ed2a09 | |||
| f9f5f9a017 | |||
| 647f64c99e | |||
| e04a5a2de4 | |||
| 395263ee66 | |||
| bdc4ff67e7 | |||
| 1d078a30e0 | |||
| 0d8502bfac | |||
| a44254bcc9 | |||
| dcf9aaee84 | |||
| 8dc558a6d5 | |||
| ff275aa0ad | |||
| 0ead0af0b5 | |||
| 21899bb072 | |||
| 84dc370d32 | |||
| ab1569fced | |||
| be5dfb2832 | |||
| 7dbc7fc3ef | |||
| 9efb42f944 | |||
| 6ba2335f8a | |||
| 114c9dfc68 | |||
| 864756c815 | |||
| 116636c9a3 | |||
| dc3ccef3fd | |||
| 5ae94d72b4 | |||
| b245bffbc8 | |||
| 98c17f4ad7 | |||
| a75505f467 | |||
| cabd3aca8b | |||
| 75303a619e | |||
| 60c73cac78 | |||
| 3c8b230cc3 | |||
| d22e0ead04 | |||
| e43971d3de | |||
| 81c16f674c | |||
| 0dc3dc0d72 | |||
| 6f6d92b659 | |||
| 961a87fb6c | |||
| 63cd99cd4d | |||
| d51c9e6359 | |||
| a0afdfbd47 | |||
| 2d97851c5b | |||
| b00bd9f056 | |||
| c061c18a8e | |||
| 4d77b17269 | |||
| 0de4af9bdb | |||
| 78820d1058 | |||
| 8bea538b1f | |||
| 8bb770bc3e | |||
| 6747571cf9 | |||
| 6f793dddb9 | |||
| 4d721f43c1 | |||
| b2f2d34b27 | |||
| 2d816f3b8a | |||
| 1464cd93ba | |||
| 6dffe35f26 | |||
| 157bb75907 | |||
| a2d72c218a | |||
| 3484c97fbf | |||
| 90700e9595 | |||
| b5d13f000e | |||
| fcf71c9d49 | |||
| 7657759299 | |||
| fd3cef6915 | |||
| 82c53029e0 | |||
| be53ed782c | |||
| bc025c1c3d | |||
| 95f8d688cd | |||
| 38c4bdc864 | |||
| 90b9a68bd3 | |||
| edf0cd7910 | |||
| 8619045bbe | |||
| 214bd46da4 | |||
| b58093a243 | |||
| f251a19215 | |||
| 5a4f6e0988 | |||
| 99146b1913 | |||
| 18fc3abcc9 | |||
| 64c5b2bbc3 | |||
| 633356a6a3 | |||
| d5bedbd09c | |||
| 8bd218c677 | |||
| d496a1670d | |||
| cd86dcffbc | |||
| 254ca3b3ec | |||
| efe4666078 | |||
| 94da35b60e | |||
| 433e4bf971 | |||
| d2f17da948 | |||
| 3f4a3c7d7e | |||
| 764ffe11d1 | |||
| 43c5a632b1 | |||
| 45009cc73f | |||
| 69f76bb290 | |||
| e556d282d6 | |||
| 1f69eeb78d | |||
| b9db1e303e | |||
| bbf6f246df | |||
| f609c72fc4 | |||
| e349adeccf | |||
| d44fdcc508 | |||
| 1cbea322d6 | |||
| 1a975bbe6f | |||
| 58e5784313 | |||
| ed198150b7 | |||
| 0e4496d2d4 | |||
| 1904d14773 | |||
| 5c6d589e0b | |||
| 80779c9f2d | |||
| ad76c9cc6b | |||
| 5867c8111e | |||
| 128c141843 | |||
| 25c317c4d0 | |||
| 42cbbd43c3 | |||
| 81cd5c0880 | |||
| 6953cdfc5e | |||
| f1f7fca41e | |||
| 1d5b8c522a | |||
| a9dd252ad6 | |||
| bf737644fb | |||
| 1f484d8bfc | |||
| f3aa4a0558 | |||
| 1ac5a8efaa | |||
| bff5d058b0 | |||
| 498b491dc6 | |||
| 16e677ed94 | |||
| 5d5f74850f | |||
| 346094def6 | |||
| 6995284786 | |||
| 462593f523 | |||
| 335dd8e56f | |||
| 941b51da0f | |||
| 97f6e0a927 | |||
| 03db94e20d | |||
| 07fc9e7953 | |||
| cc42ef328c | |||
| e06155527b | |||
| 0243236b16 | |||
| ebacce2f68 | |||
| 824c23901d | |||
| e61493239e | |||
| 7bea684ecf | |||
| d47f635133 | |||
| 16e57cf094 | |||
| faccb7c619 | |||
| a7935e6888 | |||
| 847fd59e7c | |||
| c32971ebed | |||
| 0b05defeaf | |||
| 63179bf7f2 | |||
| 66ff417333 | |||
| f82e32f88a | |||
| 7370fb688d | |||
| 53a0a39af4 | |||
| ce8a642658 | |||
| 7431b22076 | |||
| 433b899ef0 | |||
| afa6ea2abc | |||
| 5f55675193 | |||
| 5eb9aa3e99 | |||
| c0a46f264a | |||
| 66639d832c | |||
| 489988c16d | |||
| 63ce0122cf | |||
| f3bce0a6fe | |||
| e3a264d029 | |||
| 194fd012fb | |||
| 37771a7b81 | |||
| eaae9e8e9c | |||
| dc6661572a | |||
| f73ea6d5cf | |||
| 8823d70052 | |||
| e3a92d444c | |||
| dba19f1f09 | |||
| 0fe80c0a1c | |||
| f4a87005a9 | |||
| bc20bf535b | |||
| fbd2a63839 | |||
| f028970924 | |||
| eb2d79ff7e | |||
| 215e0747b4 | |||
| 7d093de1f9 | |||
| 586e5d298e | |||
| dffa2128a8 | |||
| de38f78a55 | |||
| 4cb0cbc3e4 | |||
| a4a21d47ee | |||
| 159249667f | |||
| df7897c4a3 | |||
| a684747c94 | |||
| fd729d02eb | |||
| 98b49ca40b | |||
| b80f31b911 | |||
| bc37d9c0b9 | |||
| 9158b6a966 | |||
| 19e96f38f5 | |||
| 5a6c3de113 | |||
| d425cc9ed2 | |||
| 8a7481f64b | |||
| d1edbee394 | |||
| b040802d3f | |||
| 6d65d2c7a6 | |||
| 3143e5b452 | |||
| 423e910a04 | |||
| 7e8cbb01fd | |||
| d2eb875a97 | |||
| 2fe70355e6 | |||
| b1f664ca7c | |||
| cafdfb4978 | |||
| fb6d8c4e4a | |||
| 2947d088ff | |||
| 099ceadfe1 | |||
| dd2ae010ab | |||
| 4c130e347c | |||
| f504f3e89b | |||
| a9696ac713 | |||
| 8eb569ecdd | |||
| 2b97ab1533 | |||
| 3da0d408ff | |||
| 614082980d | |||
| c8c57db8d4 | |||
| e2ee50197c | |||
| b0dce34b83 | |||
| 44624918bf | |||
| 70e40077f6 | |||
| 25298352a6 | |||
| 86fc9f3170 | |||
| 37b1355d46 | |||
| b7ba3ba159 | |||
| 661de3fd19 | |||
| 31a4aac014 | |||
| 60bb05e19a | |||
| 0dfd58b9ef | |||
| 36d392c2f2 | |||
| 4fd858d635 | |||
| d342206f0a | |||
| 00b82452f4 | |||
| 97d7c84b58 | |||
| 29ea95db65 | |||
| 41900c4e02 | |||
| ed331cc581 | |||
| cf7b9e45c0 | |||
| 0c1f60971e | |||
| 00c70b9da0 | |||
| d14d8f9eb8 | |||
| f3579cb9a7 | |||
| 94e6545fcc | |||
| a4efc9e7d1 | |||
| 860631cf7d | |||
| 3683296110 | |||
| 3ee6de5fb1 | |||
| 0bd32d5d7c | |||
| 64081a1dda | |||
| 08601a3284 | |||
| 4cb4e85e4e | |||
| 2009725f33 | |||
| 93eb9afad1 | |||
| 14e8fcb814 | |||
| dde5d6260a | |||
| 3ee0afda05 | |||
| 3f4b9042c9 | |||
| c6158f241e | |||
| 22dd0f25f9 | |||
| 4447ccdd56 | |||
| 8ce8ea92fe | |||
| 2b1e94da87 | |||
| 295855e0ae | |||
| e876247ccd | |||
| b381222022 | |||
| de5f6f02f3 | |||
| b00195dbeb | |||
| ac878b82ee | |||
| 242cdb02b8 | |||
| b9848a177a | |||
| 724755d762 | |||
| 6856791364 | |||
| 3ab01b9d3d | |||
| fd5e127ea3 | |||
| 11cfb54716 | |||
| 1690069718 | |||
| 6c65d6cc6e | |||
| ba2382ba4c | |||
| e7b4ff46ae | |||
| 870fc789fe | |||
| add848141c | |||
| 3fd02690a1 | |||
| 7b0e749294 | |||
| 21db10f5cb | |||
| e44e98b144 |
12
.gitignore
vendored
12
.gitignore
vendored
@@ -1,6 +1,8 @@
|
|||||||
sources/
|
src/
|
||||||
bin/
|
bin/
|
||||||
files/
|
.vscode/
|
||||||
patches/
|
*.code-workspace
|
||||||
.lock
|
backups/
|
||||||
make.log
|
.dependencies_source
|
||||||
|
.dependencies_ib
|
||||||
|
|
||||||
|
|||||||
19
.vscode/launch.json
vendored
19
.vscode/launch.json
vendored
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "bashdb",
|
|
||||||
"request": "launch",
|
|
||||||
"terminalKind": "integrated",
|
|
||||||
"name": "Bash-Debug (simplest configuration)",
|
|
||||||
"program": "${file}",
|
|
||||||
"args": [
|
|
||||||
"-d",
|
|
||||||
"-p", "r4s"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"window.title": "openwrtbuilder",
|
|
||||||
"cSpell.words": [
|
|
||||||
"infile",
|
|
||||||
"isfile",
|
|
||||||
"openwrt",
|
|
||||||
"regen",
|
|
||||||
"sysbackup"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
13
.vscode/tasks.json
vendored
13
.vscode/tasks.json
vendored
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
||||||
// for the documentation about the tasks.json format
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "Build RPi4 snapshot in toolbox",
|
|
||||||
"type": "shell",
|
|
||||||
"command": "toolbox run ${file} -p r4s -d",
|
|
||||||
"problemMatcher": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
55
README.md
55
README.md
@@ -1,3 +1,56 @@
|
|||||||
# openwrtbuilder
|
# openwrtbuilder
|
||||||
|
|
||||||
See `openwrtbuilder --help` for help options.
|
Build and deploy OpenWRT images using shell-style device profiles, via source code or the official Image Builder.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
`openwrtbuilder [OPTION [VALUE]]... -p PROFILE [-p PROFILE]...`
|
||||||
|
|
||||||
|
## Options
|
||||||
|
|
||||||
|
```(text)
|
||||||
|
--profile,-p PROFILE
|
||||||
|
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
|
||||||
|
--buildroot,-b PATH (Default: script directory)
|
||||||
|
--source
|
||||||
|
Build image from source code, not from Image Builder.
|
||||||
|
Allows make config options to be passed in profile.
|
||||||
|
Uses git worktree for multi-profile deduplication.
|
||||||
|
--ssh-upgrade HOST
|
||||||
|
Example: root@192.168.1.1
|
||||||
|
--ssh-backup SSH_PATH
|
||||||
|
Enabled by default for --ssh-upgrade
|
||||||
|
--flash,-f DEVICE
|
||||||
|
Example: /dev/sdX
|
||||||
|
--reset
|
||||||
|
Cleanup all source and output files
|
||||||
|
Can be combined with -p to reset a specific profile
|
||||||
|
--depends
|
||||||
|
Force dependency installation
|
||||||
|
--yes,-y
|
||||||
|
Assume yes for all questions (automatic mode)
|
||||||
|
--debug,-d
|
||||||
|
--help,-h
|
||||||
|
```
|
||||||
|
|
||||||
|
## Profiles
|
||||||
|
|
||||||
|
See `profiles` for example device profile definitions. Multiple `--profile` can be passed at once.
|
||||||
|
|
||||||
|
The default build mode is `imagebuilder` unless `--source` is passed. Default profile modes can be set individually in `profiles`.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
* `openwrtbuilder -p r4s -p ax6000`
|
||||||
|
* `openwrtbuilder -p r4s -r snapshot --debug`
|
||||||
|
* `openwrtbuilder -p ax6000 -r 23.05.5 --source --debug`
|
||||||
|
* `openwrtbuilder -p rpi4 -r 23.05.5 --flash /dev/sdX`
|
||||||
|
* `openwrtbuilder -p linksys -r snapshot --ssh-upgrade root@192.168.1.1`
|
||||||
|
|
||||||
|
## Additional Info
|
||||||
|
|
||||||
|
Find `openwrtbuilder` useful? [Paypal me a coffee!](https://paypal.me/bryanroessler)
|
||||||
|
|
||||||
|
[↓ ↓ ↓ Bitcoin ↓ ↓ ↓](bitcoin:bc1q7wy0kszjavgcrvkxdg7mf3s6rh506rasnhfa4a)
|
||||||
|
|
||||||
|
[](bitcoin:bc1q7wy0kszjavgcrvkxdg7mf3s6rh506rasnhfa4a)
|
||||||
|
|||||||
1175
openwrtbuilder
1175
openwrtbuilder
File diff suppressed because it is too large
Load Diff
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"folders": [
|
|
||||||
{
|
|
||||||
"path": "."
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"settings": {
|
|
||||||
"window.title": "openwrtbuilder",
|
|
||||||
"cSpell.words": [
|
|
||||||
"openwrtbuilder",
|
|
||||||
"padx"
|
|
||||||
],
|
|
||||||
"cSpell.ignoreWords": [
|
|
||||||
"openwrtbuilder"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
301
profiles
301
profiles
@@ -1,166 +1,159 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# Device profiles for openwrtbuilder
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
# This file contains a set of device profiles for openwrtbuilder
|
|
||||||
|
|
||||||
# Packages to install for all profiles
|
# Default (but optional) packages (precede with "-" to exclude)
|
||||||
default_packages="\
|
default_packages=(nano htop diffutils tar iperf3 zsh rsync curl tcpdump
|
||||||
luci \
|
openssh-sftp-server luci luci-ssl luci-proto-wireguard luci-app-statistics
|
||||||
luci-ssl \
|
collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack collectd-mod-cpu
|
||||||
nano \
|
)
|
||||||
htop \
|
|
||||||
tcpdump \
|
|
||||||
diffutils \
|
|
||||||
tar \
|
|
||||||
iperf \
|
|
||||||
bash \
|
|
||||||
rsync " # Leave trailing whitespace
|
|
||||||
|
|
||||||
|
# Default (but optional) kernel configs
|
||||||
|
default_configs=(
|
||||||
|
)
|
||||||
|
|
||||||
declare -Ag archer
|
# Current devices
|
||||||
archer['profile']="tplink_archer-c7-v2"
|
declare -Ag r4s=(
|
||||||
archer['target']="ath79/generic"
|
[mode]="source"
|
||||||
archer['filesystem']="squashfs"
|
[device]="friendlyarm_nanopi-r4s"
|
||||||
archer['packages']="\
|
[target]="rockchip/armv8"
|
||||||
$default_packages \
|
[filesystem]="ext4"
|
||||||
-dnsmasq \
|
[packages]="${default_packages[*]} \
|
||||||
-odhcpd \
|
luci-app-ddns luci-app-sqm \
|
||||||
-iptables \
|
adblock luci-app-adblock \
|
||||||
-ath10k-firmware-qca988x-ct \
|
collectd-mod-df usbutils kmod-usb-storage kmod-usb-storage-uas \
|
||||||
ath10k-firmware-qca988x-ct-full-htt"
|
kmod-fs-btrfs btrfs-progs block-mount smcroute avahi-daemon \
|
||||||
|
ethtool ca-bundle tailscale"
|
||||||
|
[config]="${default_configs[*]} \
|
||||||
|
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
|
||||||
|
CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32"
|
||||||
|
[files]="/mnt/backup"
|
||||||
|
# For 24.10 branch (Linux 6.6)
|
||||||
|
# [cherrypicks]="https://github.com/wurzerj/openwrt.git:59d6e31 \
|
||||||
|
# https://github.com/wurzerj/openwrt.git:bb251b8" # fix inconsistent reboot
|
||||||
|
)
|
||||||
|
|
||||||
declare -Ag linksys
|
declare -Ag ax6000=(
|
||||||
linksys['profile']="linksys_ea8300"
|
[mode]="imagebuilder"
|
||||||
linksys['target']="ipq40xx/generic"
|
[device]="xiaomi_redmi-router-ax6000-stock"
|
||||||
linksys['filesystem']="squashfs"
|
[target]="mediatek/filogic"
|
||||||
linksys['packages']="\
|
[release]="snapshot"
|
||||||
$default_packages \
|
[filesystem]="squashfs"
|
||||||
-dnsmasq \
|
[packages]="${default_packages[*]} \
|
||||||
-odhcpd \
|
-dnsmasq -odhcpd-ipv6only -nftables -firewall4 tailscale"
|
||||||
-iptables"
|
)
|
||||||
|
|
||||||
declare -Ag rpi4
|
declare -Ag ax6000_uboot=(
|
||||||
rpi4['profile']="rpi-4"
|
[mode]="imagebuilder"
|
||||||
rpi4['target']="bcm27xx/bcm2711"
|
[device]="xiaomi_redmi-router-ax6000-ubootmod"
|
||||||
rpi4['filesystem']="ext4"
|
[target]="mediatek/filogic"
|
||||||
rpi4['packages']="\
|
[release]="snapshot"
|
||||||
$default_packages \
|
[filesystem]="squashfs"
|
||||||
kmod-usb-net-asix-ax88179 \
|
[packages]="${default_packages[*]} \
|
||||||
kmod-usb-net-rtl8152 \
|
-dnsmasq -odhcpd-ipv6only -nftables -firewall4"
|
||||||
luci-app-upnp \
|
)
|
||||||
luci-app-wireguard \
|
|
||||||
luci-app-vpn-policy-routing \
|
|
||||||
-dnsmasq \
|
|
||||||
dnsmasq-full \
|
|
||||||
luci-app-ddns \
|
|
||||||
luci-app-sqm"
|
|
||||||
|
|
||||||
declare -Ag r2s
|
declare -Ag n5100=(
|
||||||
r2s['profile']="friendlyarm_nanopi-r2s"
|
[device]="generic"
|
||||||
r2s['target']="rockchip/armv8"
|
[target]="x86/64"
|
||||||
r2s['filesystem']="ext4"
|
[filesystem]="squashfs"
|
||||||
r2s['packages']="\
|
[packages]="${default_packages[*]} \
|
||||||
$default_packages \
|
luci-app-ddns irqbalance collectd-mod-df \
|
||||||
luci-app-upnp \
|
usbutils kmod-usb-storage kmod-usb-storage-uas kmod-fs-btrfs \
|
||||||
luci-app-wireguard \
|
btrfs-progs block-mount cryptsetup kmod-crypto-xts smcroute \
|
||||||
luci-app-vpn-policy-routing \
|
avahi-daemon ethtool ca-bundle smartmontools intel-microcode \
|
||||||
-dnsmasq \
|
lm-sensors samba4-server luci-app-samba4 tailscale shadow-useradd"
|
||||||
dnsmasq-full \
|
[config]="${default_configs[*]} \
|
||||||
luci-app-ddns \
|
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
|
||||||
luci-app-sqm \
|
CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32"
|
||||||
luci-app-statistics \
|
# [files]="/mnt/backup"
|
||||||
collectd-mod-sensors \
|
)
|
||||||
collectd-mod-thermal \
|
|
||||||
collectd-mod-conntrack \
|
|
||||||
smcroute \
|
|
||||||
curl \
|
|
||||||
ethtool"
|
|
||||||
|
|
||||||
declare -Ag r4s
|
declare -Ag w1700k=(
|
||||||
r4s['release']="snapshot"
|
[mode]="source"
|
||||||
r4s['profile']="friendlyarm_nanopi-r4s"
|
[device]="gemtek_w1700k"
|
||||||
r4s['target']="rockchip/armv8"
|
[target]="airoha/an7581"
|
||||||
r4s['filesystem']="ext4"
|
[filesystem]="squashfs"
|
||||||
r4s['repo']="src/gz stangri_repo https://repo.openwrt.melmac.net"
|
[release]="snapshot"
|
||||||
# fw3 + vpn-policy-routing
|
[packages]="${default_packages[*]} \
|
||||||
# r4s['packages']="\
|
luci-app-ddns luci-app-sqm \
|
||||||
# $default_packages \
|
adblock luci-app-adblock \
|
||||||
# luci-app-upnp \
|
smcroute avahi-daemon \
|
||||||
# luci-app-wireguard \
|
lm-sensors samba4-server luci-app-samba4 tailscale shadow-useradd \
|
||||||
# luci-app-vpn-policy-routing \
|
ethtool ca-bundle tailscale"
|
||||||
# vpn-policy-routing \
|
[cherrypicks]="\
|
||||||
# -dnsmasq \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:8d449e968cfaa774ab7a219b3a5ab4251b2f9352 \
|
||||||
# dnsmasq-full \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:3033241393ef6eb562539c6a3ccb9d3cf1a25d05 \
|
||||||
# luci-app-ddns \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:79a21e0986a9efe6de3a07394a71ac15a2107b16 \
|
||||||
# luci-app-sqm \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:2f8a1cbf901df0d325dfe112fdfe8013a72c8305 \
|
||||||
# luci-app-statistics \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:71b09bc5852797cdbf7cb3b56a7d8fcd9d4ca9db \
|
||||||
# collectd-mod-sensors \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:fe0135f0b7037a9cc1985d5937dd24cb99bfccb1 \
|
||||||
# collectd-mod-thermal \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:cdb937180fb971fe702078f0e0fef63f2fcce337 \
|
||||||
# collectd-mod-conntrack \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:6dc847c802b9dc597fc2c64711ca85499f128d1d \
|
||||||
# smcroute \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:b6e6cf911915dd987eecde908a2013419565cff4 \
|
||||||
# curl \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:708089948949e66f5234249fc631e0453b58942e \
|
||||||
# ethtool \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:9841a707a577385498591bcfb56b836176325c2f \
|
||||||
# kmod-ipt-nat6 \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:8446ec6431a3247683a27070d3c69f2789b52c70 \
|
||||||
# -firewall4 \
|
https://github.com/OpenWRT-fanboy/OpenW1700k.git@lumos:05380e2ef5fb96c171da23453ba32aa349a4b126"
|
||||||
# -nftables \
|
)
|
||||||
# -kmod-nft-offload \
|
|
||||||
# firewall \
|
|
||||||
# ip6tables \
|
|
||||||
# iptables \
|
|
||||||
# kmod-ipt-offload"
|
|
||||||
|
|
||||||
# fw3 + pbr
|
declare -Ag rpi4=(
|
||||||
r4s['packages']="\
|
[device]="rpi-4"
|
||||||
$default_packages \
|
[target]="bcm27xx/bcm2711"
|
||||||
luci-app-upnp \
|
[filesystem]="ext4"
|
||||||
luci-app-wireguard \
|
[packages]="${default_packages[*]} \
|
||||||
luci-app-pbr \
|
luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full luci-app-ddns luci-app-sqm \
|
||||||
pbr-ipt \
|
kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152"
|
||||||
-dnsmasq \
|
)
|
||||||
dnsmasq-full \
|
|
||||||
luci-app-ddns \
|
|
||||||
luci-app-sqm \
|
|
||||||
luci-app-statistics \
|
|
||||||
collectd-mod-sensors \
|
|
||||||
collectd-mod-thermal \
|
|
||||||
collectd-mod-conntrack \
|
|
||||||
smcroute \
|
|
||||||
curl \
|
|
||||||
ethtool \
|
|
||||||
kmod-ipt-nat6 \
|
|
||||||
-firewall4 \
|
|
||||||
-nftables \
|
|
||||||
-kmod-nft-offload \
|
|
||||||
firewall \
|
|
||||||
ip6tables \
|
|
||||||
iptables \
|
|
||||||
kmod-ipt-offload"
|
|
||||||
|
|
||||||
# fw4 + pbr
|
declare -Ag r4s_stock=(
|
||||||
# r4s['packages']="\
|
[device]="friendlyarm_nanopi-r4s"
|
||||||
# $default_packages \
|
[target]="rockchip/armv8"
|
||||||
# luci-app-upnp \
|
[filesystem]="ext4"
|
||||||
# luci-app-wireguard \
|
[release]="snapshot"
|
||||||
# luci-app-pbr \
|
)
|
||||||
# pbr-netifd \
|
|
||||||
# -dnsmasq \
|
|
||||||
# dnsmasq-full \
|
|
||||||
# luci-app-ddns \
|
|
||||||
# luci-app-sqm \
|
|
||||||
# luci-app-statistics \
|
|
||||||
# collectd-mod-sensors \
|
|
||||||
# collectd-mod-thermal \
|
|
||||||
# collectd-mod-conntrack \
|
|
||||||
# smcroute \
|
|
||||||
# curl \
|
|
||||||
# ethtool \
|
|
||||||
# kmod-nft-nat6"
|
|
||||||
|
|
||||||
declare -Ag x5000r
|
declare -Ag totolink=(
|
||||||
x5000r['profile']="totolink_x5000r"
|
[device]="totolink_x5000r"
|
||||||
x5000r['target']="ramips/mt7621"
|
[target]="ramips/mt7621"
|
||||||
x5000r['filesystem']="squashfs"
|
[filesystem]="squashfs"
|
||||||
x5000r['packages']="\
|
[packages]="${default_packages[*]} \
|
||||||
$default_packages \
|
-dnsmasq -odhcpd-ipv6only -nftables -firewall4 \
|
||||||
-dnsmasq \
|
-kmod-nft-offload collectd-mod-iwinfo"
|
||||||
-odhcpd \
|
)
|
||||||
-iptables"
|
|
||||||
|
declare -Ag archer=(
|
||||||
|
[device]="tplink_archer-c7-v2"
|
||||||
|
[target]="ath79/generic"
|
||||||
|
[filesystem]="squashfs"
|
||||||
|
[packages]="${default_packages[*]} -dnsmasq -odhcpd -iptables \
|
||||||
|
-ath10k-firmware-qca988x-ct ath10k-firmware-qca988x-ct-full-htt"
|
||||||
|
)
|
||||||
|
|
||||||
|
declare -Ag linksys=(
|
||||||
|
[device]="linksys_ea8300"
|
||||||
|
[target]="ipq40xx/generic"
|
||||||
|
[filesystem]="squashfs"
|
||||||
|
[packages]="${default_packages[*]} \
|
||||||
|
-dnsmasq -odhcpd -iptables"
|
||||||
|
)
|
||||||
|
|
||||||
|
declare -Ag r2s=(
|
||||||
|
[device]="friendlyarm_nanopi-r2s"
|
||||||
|
[target]="rockchip/armv8"
|
||||||
|
[filesystem]="ext4"
|
||||||
|
[packages]="${default_packages[*]} \
|
||||||
|
luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full \
|
||||||
|
luci-app-ddns luci-app-sqm luci-app-statistics collectd-mod-sensors \
|
||||||
|
collectd-mod-thermal collectd-mod-conntrack smcroute curl ethtool"
|
||||||
|
)
|
||||||
|
|
||||||
|
declare -Ag r2s_tr=(
|
||||||
|
[device]="friendlyarm_nanopi-r2s"
|
||||||
|
[target]="rockchip/armv8"
|
||||||
|
[filesystem]="ext4"
|
||||||
|
[packages]="${default_packages[*]} \
|
||||||
|
luci-app-upnp luci-app-pbr luci-app-ddns \
|
||||||
|
luci-app-statistics collectd-mod-sensors collectd-mod-thermal \
|
||||||
|
collectd-mod-conntrack curl ethtool travelmate"
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user