瀏覽代碼

Stop replacing Suspend with Hibernate.

This should be done by the user manually, and probably by correctly
configuring lid actions etc. instead of overriding the targets.
Blaž Hrastnik 5 年之前
父節點
當前提交
5c8e3ed0e8
共有 1 個文件被更改,包括 0 次插入20 次删除
  1. 0 20
      setup.sh

+ 0 - 20
setup.sh

@@ -53,26 +53,6 @@ sudo systemctl enable -q surfacego-touchscreen
 
 echo
 
-echo "Suspend is recommended over hibernate. If you chose to use"
-echo "hibernate, please make sure you've setup your swap file per"
-echo "the instructions in the README."
-
-if ask "Do you want to replace suspend with hibernate?" N; then
-    echo "==> Using Hibernate instead of Suspend..."
-    if [ -f "/usr/lib/systemd/system/hibernate.target" ]; then
-        LIB="/usr/lib"
-    else
-        LIB="/lib"
-    fi
-
-    sudo ln -vsfb $LIB/systemd/system/hibernate.target /etc/systemd/system/suspend.target
-    sudo ln -vsfb $LIB/systemd/system/systemd-hibernate.service /etc/systemd/system/systemd-suspend.service
-else
-    echo "==> Not touching Suspend"
-fi
-
-echo
-
 echo "Setting your clock to local time can fix issues with Windows dualboot."
 if ask "Do you want to set your clock to local time instead of UTC?" N; then
     echo "==> Setting clock to local time..."