Skip to content

Add Kodi 14 autostart script and boot hook#636

Open
yoavmagor wants to merge 1 commit intoboxeehacks:masterfrom
yoavmagor:add/kodi-autostart
Open

Add Kodi 14 autostart script and boot hook#636
yoavmagor wants to merge 1 commit intoboxeehacks:masterfrom
yoavmagor:add/kodi-autostart

Conversation

@yoavmagor
Copy link
Copy Markdown

Summary

  • Adds hack/kodi_autostart.sh: polls /tmp/mnt/ for kodi.bin, kills Boxee/BoxeeLauncher/BoxeeHal, sets required environment variables, and launches Kodi 14.2 (Helix) from a USB stick or SD card
  • Updates hack/boot.sh to invoke kodi_autostart.sh at boot

Why

Kodi 14.2 (Helix) for Intel CE4100 can run on the Boxee Box, but requires:

  1. Waiting for storage to mount (SD card goes through an Alcor Micro USB IC, mounts asynchronously)
  2. Killing the Boxee UI stack (Boxee, BoxeeLauncher, BoxeeHal compete for display/audio hardware)
  3. Setting correct runtime env for Kodi's bundled Python 2.7 and shared libs (HOME, KODI_HOME, PYTHONHOME, PYTHONPATH, LD_LIBRARY_PATH)

The script is UUID-independent — works regardless of which slot or what filesystem UUID the media has.

Test plan

  • Place kodi_autostart.sh at /data/hack/kodi_autostart.sh on a Boxee Box with Boxee+Hacks installed
  • Verify boot.sh has the autostart line
  • Insert Kodi SD card or USB stick before booting
  • Reboot — Kodi starts automatically after ~60–90 seconds
  • Check /tmp/kodi_autostart.log for boot status

Full setup guide: https://github.com/yoavmagor/boxee-2026-yoavm

🤖 Generated with Claude Code

Adds kodi_autostart.sh: polls /tmp/mnt/ for kodi.bin, kills Boxee stack,
sets required environment vars, and launches Kodi 14 from USB/SD card.
Updates boot.sh to invoke kodi_autostart.sh at boot.

This enables running Kodi 14.2 (Helix) on the Boxee Box with Plex via
PlexBMC. See https://github.com/yoavmagor/boxee-kodi-plex for full guide.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant