openwrt增加Luci2

Luci2是官方推出的,相较于早期Luci,架构更新。抛弃Lua使用大量的js。使得速度更快,修改更简便。
使用Luci2前,建议先安装一下Luci,确保相关接口功能正常,Luci安装参考https://blog.csdn.net/pyt1234567890/article/details/107323540
此处使用改进的xLuci2
适用于openwrt v19.07.4

  1. 安装Luci2,修改feeds.conf.default,增加【src-git xluci2 https://gitee.com/zhaojh329/xluci2.git】
src-git packages https://gitee.com/openwrt-mirror/packages.git
src-git luci https://gitee.com/openwrt-mirror/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git freifunk https://github.com/freifunk/openwrt-packages.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

src-git xluci2 https://gitee.com/zhaojh329/xluci2.git

  1. 执行安装
./scripts/feeds update -a 
./scripts/feeds install -a -p xluci2
  1. 进入menuconfig,开启luci2,并打开默认主题
 .config - OpenWrt Configuration                                                                  
 > LuCI2 ──────────────────────────────────────────────────────────────────────────────────────── 
  ┌────────────────────────────────────────── LuCI2 ──────────────────────────────────────────┐   
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus ----).   │   
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes   │   
  │  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] built-in │   
  │  [ ] excluded  <M> module  < > module capable                                             │   
  │ ┌───────────────────────────────────────────────────────────────────────────────────────┐ │   
  │ │            Applications  --->                                                         │ │   
  │ │            Themes  --->                                                               │ │   
  │ │        <*> luci2-base...................................... LuCI2 UI modified by zjh  │ │   
  │ │                                                                                       │ │   
  │ │                                                                                       │ │   
  │ │                                                                                       │ │   
  │ └───────────────────────────────────────────────────────────────────────────────────────┘ │   
  ├───────────────────────────────────────────────────────────────────────────────────────────┤   
  │                 <Select>    < Exit >    < Help >    < Save >    < Load >                  │   
  └───────────────────────────────────────────────────────────────────────────────────────────┘   
                                                                                                  
 .config - OpenWrt Configuration                                                                  
 > LuCI2 > Themes ─────────────────────────────────────────────────────────────────────────────── 
  ┌───────────────────────────────────────── Themes ──────────────────────────────────────────┐   
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty submenus ----).   │   
  │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, <M> modularizes   │   
  │  features.  Press <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] built-in │   
  │  [ ] excluded  <M> module  < > module capable                                             │   
  │ ┌───────────────────────────────────────────────────────────────────────────────────────┐ │   
  │ │        <*> luci2-theme-default.................................. LuCI2 Default theme  │ │   
  │ │        < > luci2-theme-sidenav................................. LuCI2 Side Nav theme  │ │   
  │ │                                                                                       │ │   
  │ │                                                                                       │ │   
  │ │                                                                                       │ │   
  │ │                                                                                       │ │   
  │ └───────────────────────────────────────────────────────────────────────────────────────┘ │   
  ├───────────────────────────────────────────────────────────────────────────────────────────┤   
  │                 <Select>    < Exit >    < Help >    < Save >    < Load >                  │   
  └───────────────────────────────────────────────────────────────────────────────────────────┘   

猜你喜欢

转载自blog.csdn.net/pyt1234567890/article/details/109391884
今日推荐