added devcontainer

This commit is contained in:
2026-07-10 15:44:09 +02:00
parent 5da43ff0f3
commit 356837ee0a
31 changed files with 4828 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
# openuf — configuration
#
# controller_ip: UniFi controller IP address or hostname
# lan_if: primary LAN interface (used for the AP MAC and IP)
# ufmodel: emulated model (u6-inwall recommended)
# inform_interval: seconds between inform requests (minimum 5)
# enable_announce: 1=enable UDP discovery (port 10001)
# enable_inform: 1=enable HTTP inform requests (adoption and telemetry)
# enable_logging: 1=enable logging to /var/log/openuf.log
controller_ip = 10.10.10.1
lan_if = br-lan
ufmodel = uapg2-ac-lr
inform_interval = 10
enable_announce = 1
enable_inform = 1
enable_logging = 1
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh /etc/rc.common
# openuf init script (procd)
USE_PROCD=1
START=95
STOP=10
CONF=/etc/openuf/openuf.conf
PROG=/usr/sbin/openuf
start_service() {
procd_open_instance
procd_set_param command "$PROG" -c "$CONF"
procd_set_param respawn 3600 5 0
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
stop_service() {
killall openuf 2>/dev/null
}
reload_service() {
stop_service
start_service
}