1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-17 14:57:22 +03:00

boot/init: System.write for hard reboot

This commit is contained in:
Samuel Dionne-Riel 2020-01-20 16:40:11 -05:00
parent 4f83d41d33
commit 462a3ae2e7

View File

@ -115,6 +115,6 @@ module System
end
def self.hard_reboot()
File.write("/proc/sysrq-trigger", "b\n")
System.write("/proc/sysrq-trigger", "b\n")
end
end