Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: improve shutdown with multiple fallback methods

Try poweroff -f, reboot -f, sysrq, and busybox poweroff in sequence.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+9 -2
+9 -2
fedac/native/initramfs/init
··· 107 107 # Clean exit (0) = shutdown requested 108 108 if [ "$EXIT_CODE" = "0" ]; then 109 109 sync 110 - poweroff -f 2>/dev/null || reboot -f 2>/dev/null 111 - sleep 10 110 + echo "[ac-init] Clean exit — shutting down..." 111 + # Try multiple shutdown methods 112 + poweroff -f 2>/dev/null 113 + reboot -f 2>/dev/null 114 + # Fallback: write to sysrq 115 + echo o > /proc/sysrq-trigger 2>/dev/null 116 + # Last resort: direct syscall via busybox 117 + busybox poweroff -f 2>/dev/null 118 + sleep 30 112 119 break 113 120 fi 114 121