Giter Site home page Giter Site logo

luci-app-poweroffdevice's Introduction

若部分图片无法正常显示,请挂上机场浏览或点这里到末尾看修复教程 图飞了😂

screenshots

认真阅读完毕 本页面,本页面包含注意事项和如何使用。

poweroffdevice是一款基于OPNEWRT编译的关机源码插件。

写在前面:


-这个关机功能最早使用者是KOOLSHARE的固件。苦于OPENWRT中没有关机补丁,有感于前辈们的付出,苦思2020年4月动手在OPENWRT上首次使用此插件,此源码源于官方源码重启的源码修改而来. 之前一直有朋友在问,怎么使用关机插件,关机插件是有二种使用方式。一种是下载插件编译,这相对来说占用资源多一点,另一种就是在系统的源码上修改。

使用说明

将poweroffdevice关机功能 添加至 LEDE/OpenWRT 源码的二种方法。

使用关机功能方法一:

标准方法使用关机插件。

   # 下载源码
   
   git clone https://github.com/sirpdboy/luci-app-poweroffdevice package/luci-app-poweroffdevice
   
   make menuconfig
   # 配置菜单
   make menuconfig
   # 找到 LuCI -> Applications, 选择 luci-app-poweroffdevice, 保存后退出。
   # 编译固件
   make package/luci-app-poweroffdevice/{clean,compile} V=s

使用关机功能方法二【推荐此方法】:

系统的源码上修改,集成到系统源码菜单中,不需要另外选择和设置即可使用关机功能

   #在编译前,运行如下二条命令,集成到系统源码菜单中,不需要另外选择和设置即可使用关机功能。
   cd openwrt #进入源码目录
   curl -fsSL  https://raw.githubusercontent.com/sirpdboy/other/master/patch/poweroff/poweroff.htm > ./feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_system/poweroff.htm 
   curl -fsSL  https://raw.githubusercontent.com/sirpdboy/other/master/patch/poweroff/system.lua > ./feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua

screenshots

说明

源码来源:https://github.com/sirpdboy/luci-app-poweroffdevice

使用与授权相关说明

  • 本人开源的所有源码,任何引用需注明本处出处,如需修改二次发布必告之本人,未经许可不得做于任何商用用途。

My other project

捐助

screenshots

图飞了😂 图飞了😂
xm1 xm1
图飞了😂

luci-app-poweroffdevice's People

Contributors

edwardostara avatar sirpdboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

luci-app-poweroffdevice's Issues

这个关机插件在immortalwrt编译中会没有中文翻译

全部都是英文,这是第一个问题,希望得到修复
还有另一个小问题,现在咱们的项目目录是->根目录->(luasrc,po,Makefile,.git,README.md)这样只能手动clone到项目里进行编译,如果我把项目路径添加到feeds.conf.default文件中,install命令会出现错误。需要修改项目层级,套一层才能正常,比如->根目录->(.git,README.md,文件夹luci-app-poweroffdevice->(luasrc,po,Makefile))

LUCI error

/usr/lib/lua/luci/ccache.lua:70: error loading module 'luci.controller.poweroffdevice' from file '/usr/lib/lua/luci/controller/poweroffdevice.lua':
/usr/lib/lua/luci/controller/poweroffdevice.lua:6: unexpected symbol near ','
stack traceback:
[C]: in function 'loader'
/usr/lib/lua/luci/ccache.lua:70: in function </usr/lib/lua/luci/ccache.lua:61>
[C]: in function 'require'
/usr/lib/lua/luci/dispatcher.lua:534: in function 'createindex'
/usr/lib/lua/luci/dispatcher.lua:561: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:246: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:129: in function </usr/lib/lua/luci/dispatcher.lua:128>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.