Josef SchlehoferandClaude Fable 5 7e5c48dd85 alfred: handle unreadable files in bat-hosts.lua
get_interface_address() calls io.open() and dereferences the result
without checking it. /sys/class/net does not contain interfaces
only: with the bonding module loaded it also holds the plain file
bonding_masters, which the `ls -1` in get_interfaces_names() returns
and which has no address below it. io.open() then returns nil and
the script dies with "attempt to index a nil value", so no bat-hosts
data is published at all on such a node.

Return nil when the file cannot be opened and skip those entries in
the caller, which would otherwise index the interface table with
nil. get_hostname() gets the same guard.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 09:47:15 +02:00
2026-06-30 19:41:19 +02:00
2026-08-01 08:20:07 +02:00
2026-07-31 14:10:47 +02:00
…

OpenWrt Routing Feed

Description

This OpenWrt package feed contains community maintained routing packages.

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 routing
./scripts/feeds install -a -p routing
S
Description
OpenWrt Routing Packages
Readme
6 MiB
0 Stars 1 Watchers 0 Forks
Languages
Lua 38.9%
Shell 28.2%
Makefile 27.9%
HTML 5%