mirror of
https://github.com/ptitSeb/box86.git
synced 2026-11-07 09:06:01 -10:00
This script checks for the presence of systemd and restarts the binfmt_misc service
7 lines
238 B
Bash
Executable File
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
|