Add comments to systemd-binfmt restart script (#1050)

This script checks for the presence of systemd and restarts the binfmt_misc service
This commit is contained in:
Loyalburrito authored and GitHub committed 2025-09-20 18:37:35 +02:00
1 parent ac48800fbb
commit fa14e0ab14
1 file changed
+2
+2
View File
@@ -1,4 +1,6 @@
#!/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