fix(beacon): direct cpufreq fallback on Android SELinux and atomic binary replacement

This commit is contained in:
Krystof Pesek
2026-11-05 22:03:28 +01:00
parent 8602a3d8cb
commit 703c19c231
2 changed files with 28 additions and 35 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ fi
if [ -n "$CC_BIN" ] && [ -f "$BIN_DIR/src/fleet-beacon.c" ]; then
if [ ! -x "$BIN_DIR/fleet-beacon-c" ] || [ "$BIN_DIR/src/fleet-beacon.c" -nt "$BIN_DIR/fleet-beacon-c" ]; then
"$CC_BIN" -O2 -Wall -Wextra -pedantic -o "$BIN_DIR/fleet-beacon-c" "$BIN_DIR/src/fleet-beacon.c" 2>/dev/null || true
"$CC_BIN" -O2 -Wall -Wextra -pedantic -o "$BIN_DIR/fleet-beacon-c.tmp.$$" "$BIN_DIR/src/fleet-beacon.c" 2>/dev/null && mv -f "$BIN_DIR/fleet-beacon-c.tmp.$$" "$BIN_DIR/fleet-beacon-c" || rm -f "$BIN_DIR/fleet-beacon-c.tmp.$$"
fi
fi