s
This commit is contained in:
parent
9d38573f31
commit
780aa67514
@ -219,7 +219,7 @@ configurePortage() {
|
|||||||
echo
|
echo
|
||||||
chroot $TARGET /usr/bin/getuto
|
chroot $TARGET /usr/bin/getuto
|
||||||
distccConfigure
|
distccConfigure
|
||||||
`` echo "USE=\"$USE_FLAGS\"" >>$TARGET/etc/portage/make.conf
|
$() echo "USE=\"$USE_FLAGS\"" >>$TARGET/etc/portage/make.conf
|
||||||
if [ -z "$DISTCC_LISTEN" ]; then
|
if [ -z "$DISTCC_LISTEN" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Not using DistCC"
|
echo "Not using DistCC"
|
||||||
@ -301,7 +301,7 @@ buildGentoo() {
|
|||||||
chroot $TARGET /setup.sh
|
chroot $TARGET /setup.sh
|
||||||
rm -f $TARGET/setup.sh
|
rm -f $TARGET/setup.sh
|
||||||
}
|
}
|
||||||
installPackages(){
|
installPackages() {
|
||||||
/usr/bin/emerge -uDN $PACKAGES --autounmask-write
|
/usr/bin/emerge -uDN $PACKAGES --autounmask-write
|
||||||
/usr/sbin/etc-update -q --automode -5
|
/usr/sbin/etc-update -q --automode -5
|
||||||
/usr/bin/emerge -uDN $PACKAGES
|
/usr/bin/emerge -uDN $PACKAGES
|
||||||
@ -342,6 +342,22 @@ services() {
|
|||||||
desktop() {
|
desktop() {
|
||||||
services
|
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() {
|
installSteam() {
|
||||||
eselect repository enable steam-overlay
|
eselect repository enable steam-overlay
|
||||||
emerge --sync steam-overlay
|
emerge --sync steam-overlay
|
||||||
@ -659,7 +675,7 @@ elif [ "$1" = "wifi" ]; then
|
|||||||
elif [ "$1" = "accounts" ]; then
|
elif [ "$1" = "accounts" ]; then
|
||||||
accounts
|
accounts
|
||||||
elif [ "$1" = "hibernate" ]; then
|
elif [ "$1" = "hibernate" ]; then
|
||||||
hibernate-setup
|
hibernate
|
||||||
elif [ "$1" = "bootloader" ]; then
|
elif [ "$1" = "bootloader" ]; then
|
||||||
bootloader "$2" "$3" "$4"
|
bootloader "$2" "$3" "$4"
|
||||||
elif [ "$1" = "snapshot" ]; then
|
elif [ "$1" = "snapshot" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user