Skip to content

v1.1.1.1: Critical Bug Fixes & Modernized Packages

Choose a tag to compare

@Temporalwar Temporalwar released this 01 Jun 22:32
56aa085

A massive update fixing critical shell-level bugs found in the original firmware scripts, unlocking the full ONVIF event suite, and replacing end-of-life bundled binaries with modern, patched versions.

🚀 What's New

  • ONVIF Server Crash Loop Fix (Critical): Wrapped onvif_simple_server in setsid to safely detach it from the controlling terminal, preventing segfaults and exit code 1 errors when backgrounded from init.
  • ONVIF Event Pipeline Fix: Corrected boot ordering so ipc2file, onvif_notify_server, and wsd_simple_server all start before onvif_simple_server blocks. Motion events now work reliably on boot.
  • Full ONVIF Event Suite: Fixed events=3events=6 so all 6 detection events are registered: Motion, People, Vehicles, Animals, Baby Crying, and General Sound.
  • RTSP Network Buffer Tuning: Injected sysctl commands to increase network buffers (rmem_max, wmem_max), resulting in smoother, stutter-free high-resolution RTSP streams.
  • Dynamic Multi-WiFi Support: Added WIFI_MULTI=yes functionality to bypass single-network restrictions and read a custom wpa_supplicant.conf from the SD card.
  • Persistent Camera State Memory: Camera now intelligently restores its software on/off state after a reboot by reading camera.conf at boot.
  • cloudAPI Always Updated: Replaced fragile version-comparison logic with a direct cp -f so cloudAPI and cloudAPI_fake are always pushed to flash on boot.
  • MQTT Conditional Start: MQTT daemon now only starts if explicitly enabled in config, saving memory and CPU for users who don't use smart home integrations.
  • Crontab Overwrite Bug Fix: Corrected >>> in system.sh to stop cron jobs silently wiping out existing scheduled tasks.
  • All AI Detection On By Default: camera.conf now ships with all AI detection features enabled.

🛡️ Updated Packages

All bundled binaries have been replaced with current, patched versions cross-compiled for arm-hisiv300-linux (ARMv5te, uClibc 0.9.33.2):

  • Mosquitto 2.1.2 (Major version bump, hardened network packet handling, memory leak fixes)
  • libfuse3 3.18.1 (14 minor versions of cumulative bug fixes and performance stabilization)
  • OpenSSL 3.3.7 (Fixes CVE-2025-9230, CVE-2025-9231, CVE-2025-15467, CVE-2025-69421, and CVE-2026-series)
  • curl 8.20.0 (~3 years of critical upstream security patches)
  • dropbear 2025.89 (Fixes CVE-2025-14282 privilege escalation)
  • pure-ftpd 1.0.54 (Multiple hardening fixes across PureDB, PAM, and quota handling)
  • cJSON 1.7.18 (New core dependency required to support modern Mosquitto 2.x builds)

🐛 Shell & CGI Bug Fixes

  • RTSP watchdog: $RTSP_PORT used instead of $RRTSP_PORT fixed, allowing locked-stream recovery to finally trigger.
  • Web UI persistence: Toggling camera on/off, LED, IR, sensitivity, and rotation via the web UI is now properly written and persisted to camera.conf.
  • CGI Guards: Fixed path traversal guards (DIR="none" and FILE="none") in event deletion scripts.
  • MQTT Home Assistant: Fixed undefined CONF_SYSTEM_FILE, corrected MQTT_ADV_TELEMETRY_QOS key, and anchored grep to prevent partial key matches.
  • Default Configs: Added CAMERA_ENABLED=yes to system.conf and all missing AI detection keys to camera.conf.