summary refs log tree commit diff
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-05-13 03:28:27 +0300
committerYegor Timoshenko <yegortimoshenko@riseup.net>2018-05-13 06:28:37 +0300
commita2981671523416ad5c9a49de8c16ac8fccb2306b (patch)
tree8a9635c235e5c299e63faaddf857fa3176c669d2
parent714aff4004cbd8396624f798a485f2d724d1233c (diff)
downloadnixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar.gz
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar.bz2
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar.lz
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar.xz
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.tar.zst
nixpkgs-a2981671523416ad5c9a49de8c16ac8fccb2306b.zip
stage-1: remove tuxonice handling
-rw-r--r--nixos/modules/system/boot/stage-1-init.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh
index 1facf419ed0..92e68b72664 100644
--- a/nixos/modules/system/boot/stage-1-init.sh
+++ b/nixos/modules/system/boot/stage-1-init.sh
@@ -405,15 +405,6 @@ lustrateRoot () {
 
 
 
-
-# Try to resume - all modules are loaded now.
-if test -e /sys/power/tuxonice/resume; then
-    if test -n "$(cat /sys/power/tuxonice/resume)"; then
-        echo 0 > /sys/power/tuxonice/user_interface/enabled
-        echo 1 > /sys/power/tuxonice/do_resume || echo "failed to resume..."
-    fi
-fi
-
 if test -e /sys/power/resume -a -e /sys/power/disk; then
     if test -n "@resumeDevice@" && waitDevice "@resumeDevice@"; then
         resumeDev="@resumeDevice@"