From 780aa67514478d43aebe8207174cba5b520a6436 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 17 Feb 2024 07:28:54 -0700 Subject: [PATCH] s --- gentoo-kde.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/gentoo-kde.sh b/gentoo-kde.sh index b8eccc8..6fcd415 100644 --- a/gentoo-kde.sh +++ b/gentoo-kde.sh @@ -219,7 +219,7 @@ configurePortage() { echo chroot $TARGET /usr/bin/getuto distccConfigure -`` echo "USE=\"$USE_FLAGS\"" >>$TARGET/etc/portage/make.conf + $() echo "USE=\"$USE_FLAGS\"" >>$TARGET/etc/portage/make.conf if [ -z "$DISTCC_LISTEN" ]; then echo echo "Not using DistCC" @@ -295,13 +295,13 @@ buildGentoo() { echo 'bash /usr/bin/gentoo-kde.sh accounts' >>$TARGET/setup.sh echo 'bash /usr/bin/gentoo-kde.sh desktop' >>$TARGET/setup.sh echo 'bash /usr/bin/gentoo-kde.sh btrfs-tweaks' >>$TARGET/setup.sh - + chmod +x $TARGET/usr/bin/gentoo-kde.sh chmod +x $TARGET/setup.sh chroot $TARGET /setup.sh rm -f $TARGET/setup.sh } -installPackages(){ +installPackages() { /usr/bin/emerge -uDN $PACKAGES --autounmask-write /usr/sbin/etc-update -q --automode -5 /usr/bin/emerge -uDN $PACKAGES @@ -342,6 +342,22 @@ services() { desktop() { services } + +hibernate() { + echo "[Sleep]" >/etc/systemd/sleep.conf + echo "AllowSuspend=yes" >>/etc/systemd/sleep.conf + echo "AllowHibernation=yes" >>/etc/systemd/sleep.conf + echo "AllowSuspendThenHibernate=yes" >>/etc/systemd/sleep.conf + echo "AllowHybridSleep=yes" >>/etc/systemd/sleep.conf + echo "SuspendState=mem standby freeze" >>/etc/systemd/sleep.conf + echo "HibernateMode=platform shutdown" >>/etc/systemd/sleep.conf + echo "HibernateDelaySec=1300" >>/etc/systemd/sleep.conf + echo "#SuspendEstimationSec=60min" >>/etc/systemd/sleep.conf + unlink /usr/lib/systemd/system/systemd-suspend.service + rm -f /usr/lib/systemd/system/systemd-suspend.service + ln -s /usr/lib/systemd/system/systemd-suspend-then-hibernate.service /usr/lib/systemd/system/systemd-suspend.service +} + installSteam() { eselect repository enable steam-overlay emerge --sync steam-overlay @@ -659,7 +675,7 @@ elif [ "$1" = "wifi" ]; then elif [ "$1" = "accounts" ]; then accounts elif [ "$1" = "hibernate" ]; then - hibernate-setup + hibernate elif [ "$1" = "bootloader" ]; then bootloader "$2" "$3" "$4" elif [ "$1" = "snapshot" ]; then @@ -680,4 +696,4 @@ elif [ "$1" = "help" ]; then show-help else menu -fi \ No newline at end of file +fi