优化操作
# 更新所有软件包
# 更新软件列表
opkg update
# 更新所有 LUCI 插件
opkg list-upgradable | grep luci- | cut -f 1 -d ' ' | xargs opkg upgrade
# 如果要更新所有软件,包括 OpenWRT 内核、固件等
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
编辑/etc/profile
,设置命令别名
alias updateall="opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade"
# overlay
扩容
- 安装依赖
opkg install block-mount cfdisk
- 硬盘分区
cfdisk /dev/mmcblk0
- 格式化硬盘
mkfs.ext4 /dev/mmcblk0p1
- 迁移文件
mount /dev/mmcblk0p1 /tmp/extroot
tar -C /overlay -cvf - . | tar -C /tmp/extroot -xf -
- 系统->挂载点,进行挂载分区
# URL重定向
编辑/www/reurl.html
<html>
<head>
<meta http-equiv="refresh" content="0;url=https://www.baidu.com">
</head>
</html>
上次更新: 2025/03/22, 03:52:10