no fake systemctl

This commit is contained in:
Adeeb Shihadeh
2026-05-03 10:29:11 -07:00
parent 95e1e94b06
commit 7d3100e572
2 changed files with 2 additions and 16 deletions
+2 -2
View File
@@ -17,13 +17,13 @@ echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
echo "waiting for magic"
for i in {1..200}; do
if systemctl is-active --quiet magic && [ -S /tmp/drmfd.sock ]; then
if [ -S /tmp/drmfd.sock ]; then
break
fi
sleep 0.1
done
if systemctl is-active --quiet magic && [ -S /tmp/drmfd.sock ]; then
if [ -S /tmp/drmfd.sock ]; then
echo "magic ready after ${SECONDS}s"
else
echo "timed out waiting for magic, ${SECONDS}s"
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
if [ "$1" = "is-active" ] && [ "$2" = "--quiet" ] && [ "$3" = "magic" ]; then
if pgrep -u comma -f "/usr/comma/magic.py" >/dev/null 2>&1 && [ -S /tmp/drmfd.sock ]; then
exit 0
fi
exit 3
fi
if [ "$1" = "daemon-reload" ]; then
exit 0
fi
exec /usr/bin/systemctl "$@"