This commit is contained in:
Chris Wanstrath 2025-10-06 20:14:08 -07:00
parent af593a3c0c
commit 82dcc593a7

View File

@ -1,6 +1,6 @@
// Reboot the whole computer! Careful!
export default async function reboot() {
setTimeout(async () => await Bun.$`/sbin/reboot -f`, 1000)
setTimeout(async () => await Bun.$`/bin/systemd-run --uid=0 --gid=0 /sbin/reboot`, 1000)
return {
text: "Rebooting... This will take about 10 seconds.",