Maktub_Wiki Maktub_Wiki
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
  • 经济周期笔记
  • 交易技术笔记
主站 (opens new window)
  • 服务搭建
  • 网络服务
  • 开源框架
  • 操作系统
  • iOS/MacOS
  • 算法导论(Python)
  • Leetcode
  • 线性代数
  • 经济周期笔记
  • 交易技术笔记
  • Openwrt路由系统

    • 1.推荐软件
    • 2.磁盘扩容
    • 3.服务自启动
    • 4.脚本
      • 5.旁路由模式设置
      • 疑难问题

        • 1.MT7621适配问题
        • 2.Docker的cgroup问题
    • Linux系统

      • 常规配置
      • 树莓派
      • 极简系统问题
      • dd Debian系统
      • samba服务配置
    • MacOS系统

      • 设置问题
    • Windows系统

      • 命令行操作
    • 树莓派
    • 操作系统
    • Openwrt路由系统
    Maktub_小明
    2026-02-18
    目录

    4.脚本

    # 4.1 更新所有软件包

    1. 创建脚本
    # 更新软件列表
    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
    
    1. 编辑/etc/profile,设置命令别名
    alias updateall="opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade"
    
    上次更新: 2026/02/23, 04:13:25
    3.服务自启动
    5.旁路由模式设置

    ← 3.服务自启动 5.旁路由模式设置→

    Theme by Vdoing | Copyright © 2021-2026 Maktub_小明 | MIT License
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式