update luci-app-sysctl 1.7.6 - #413
Closed
Potterli20 wants to merge 3 commits into
Closed
Potterli20 wants to merge 3 commits into
Potterli20 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FAQ
Q: 页面提示"权限被拒绝 / Not found"?
rpcd 未注册
luci.sysctl对象或 ACL 未生效:/etc/init.d/rpcd restart后刷新页面。确认rpcd-mod-ucode已安装:opkg list-installed | grep rpcd-mod-ucode。Q: 在线预设获取失败?
https://gh-proxy.org/),最终地址为 前缀 + 原始 URL;raw.githubusercontent.com地址,粘贴github.com/.../blob/...页面地址会自动转换;curl -fsSL <镜像前缀+URL> | head;Q: 保存提示"参数在当前内核中不存在"?
该 key 在
/proc/sys下无对应节点,多半是功能未编译进内核或模块未加载。配置仍会保存,模块加载后下次开机生效。Q: 写入提示只读(readonly)?
部分参数(如部分
kernel.*)在运行时不可写,只能保存配置,重启后由系统应用。Q: 修改后重启会丢吗?
不会。所有修改持久化在
/etc/sysctl.d/99-luci-sysctl.conf,该文件已声明为 conffile,系统升级也会保留。Q: 和手动编辑 /etc/sysctl.conf 冲突吗?
不冲突。
/etc/sysctl.conf也可直接点击配置源标签在页面编辑,编辑结果与手动改文件完全一致;自定义参数仍推荐放在99-luci-sysctl.conf(文件名靠后、优先级最高)。Q: 删除某文件里最后一条参数时提示"删除失败"?
该问题在 v1.5.3 已修复(旧版误把"成功写入空文件"当失败,实际文件已删净)。如仍遇到请确认已安装 v1.5.3 及以上版本。
Q: 为什么总览表里看不到 /etc/sysctl.conf 的参数?
设计如此(v1.5.4 起):主配置参数统一通过点击
sysctl.conf标签查看/编辑,避免与配置源列表重复展示。Q: 明明改了参数、应用配置也成功,为什么当前值没变?
大概率同名参数被多个文件定义,你的值被后面加载的文件覆盖了(文件名字典序越靠后优先级越高,如
99-conntrack.conf会覆盖99-luci-sysctl.conf)。点击 检测重复 可看到完整的定义链与生效来源,按提示删除多余定义或直接编辑生效文件。更新日志
v1.7.4
v1.7.3
v1.7.2
sysctl -e -p会回显所有行并静默吞掉写入失败,v1.6.0 清理回显后失败痕迹完全消失、误显"全部成功";现改为应用后逐参数读回内核值校验,内核未接受的参数(配置值 ≠ 内核当前值)在结果中明确列出"写入 X,内核当前 Y",不再依赖 sysctl 输出判断成败v1.7.1
v1.7.0
v1.6.0
sysctl -p对成功应用的参数会回显key = value行,旧版把"有输出"一律当报错弹出橙色警告框;现自动剔除正常回显,仅真正的错误(如sysctl: permission denied ...)才提示