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:
parent
4f83d41d33
commit
462a3ae2e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user