Files
box86/postinst
T
Loyalburrito fa14e0ab14 Add comments to systemd-binfmt restart script (#1050)
This script checks for the presence of systemd and restarts the binfmt_misc service
2025-09-20 18:37:35 +02:00

7 lines
238 B
Bash
Executable File

#!/bin/sh
# Restart the systemd-binfmt service to load new binary format rules.
# This ensures the system is immediately ready to run programs with Box86.
if [ -d '/run/systemd/system' ]; then
systemctl restart systemd-binfmt || :
fi