mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
136bff9a8e85755bdb132d741a8e2f5937d3ba57
snmpd_access_default_add, snmpd_access_HostName_add, and snmpd_access_HostIP_add check if RestrictOID is `yes` or `no` but fail to write a newline for other values of RestrictOID (e.g., `true`, `false`) or if unset, corrupting the generated config. Fix by using config_get_bool and restructuring to write either a complete line or nothing. Also require RestrictedOID to be non-empty when RestrictOID is enabled. This is a breaking change for configs where RestrictOID is set to a value that the old code did not match as `yes` (e.g., `true`, `1`, `on`, `enabled`) but config_get_bool evaluates as true. In practice, this is unlikely to affect existing installs unless a user is unknowingly relying on unintended behavior or is deliberately relying on the old code's non-standard boolean evaluation; this latter case is considered unlikely by this commit's author. Configs where RestrictOID is enabled but RestrictedOID is empty are also affected; previously a directive with a trailing space was written, now no directive is written. Signed-off-by: Eric McDonald <librick-openwrt@proton.me>
…
…
OpenWrt packages feed
Description
This is the OpenWrt "packages"-feed containing community-maintained build scripts, options and patches for applications, modules and libraries used within OpenWrt.
Installation of pre-built packages is handled directly by the opkg utility within your running OpenWrt system or by using the OpenWrt SDK on a build system.
Usage
This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot – Installation on the OpenWrt support site.
This feed is enabled by default. To install all its package definitions, run:
./scripts/feeds update packages
./scripts/feeds install -a -p packages
License
See LICENSE file.
Package Guidelines
See CONTRIBUTING.md file.
Languages
Makefile
51%
Shell
33.8%
C
7.5%
UnrealScript
3%
C++
1.7%
Other
2.8%