This commit is contained in:
Kiolow
2025-01-11 13:02:22 +08:00
parent 7b12a50f30
commit 3be4891959
8 changed files with 113 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
# openwrt-stable
## 介绍
openwrt-stable 是基于 openwrt 官方源码构建的固件,适用于 x86、arm、mipsel、mips、ppc、ppc64、aarch64、sparc、sparc64 等架构。
## 准备工作
创建 bin 文件夹
```bash
mkdir ./bin
chmod 777 ./bin
```
## 编译固件
开始编译固件
```bash
bash docker-build.sh
```
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
PACKAGES=""
PACKAGES="$PACKAGES -dnsmasq"
PACKAGES="$PACKAGES dnsmasq-full"
PACKAGES="$PACKAGES curl"
PACKAGES="$PACKAGES luci"
PACKAGES="$PACKAGES luci-i18n-base-zh-cn"
PACKAGES="$PACKAGES luci-i18n-firewall-zh-cn"
PACKAGES="$PACKAGES luci-i18n-opkg-zh-cn"
make image PACKAGES="$PACKAGES" ROOTFS_PARTSIZE="512"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
docker run --rm -it \
-v ./bin:/builder/bin \
-v ./files:/builder/files \
-v ./build.sh:/builder/build.sh \
openwrt/imagebuilder:x86-64-23.05.5 /builder/build.sh