mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
12 lines
207 B
Nix
12 lines
207 B
Nix
{writeScriptBin}:
|
|
|
|
#
|
|
# Forces a reboot using sysrq-triggers.
|
|
#
|
|
# This is useful in the initrd where `reboot` doesn't seem to work.
|
|
#
|
|
writeScriptBin "hard-reboot" ''
|
|
#!/bin/sh
|
|
echo b > /proc/sysrq-trigger
|
|
''
|