diff --git a/install/chmod.sh b/install/chmod.sh index effdd5c..0252c01 100755 --- a/install/chmod.sh +++ b/install/chmod.sh @@ -7,7 +7,7 @@ chown -R root $MACHINE_DIR chgrp -R $MACHINE $MACHINE_DIR chmod -R 771 $MACHINE_DIR/install chmod -R 771 $BIN_DIR -chmod -R 751 $SBIN_DIR +chmod -R 661 $MACHINE_DIR/.git find $MACHINE_DIR -type d -exec chmod 775 {} \; chown root:root /etc/pam.d/* diff --git a/usr/etc/systemd/sleep.conf b/usr/etc/systemd/sleep.conf new file mode 100644 index 0000000..a63adbd --- /dev/null +++ b/usr/etc/systemd/sleep.conf @@ -0,0 +1,29 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation; either version 2.1 of the License, or (at your option) +# any later version. +# +# Entries in this file show the compile time defaults. Local configuration +# should be created by either modifying this file (or a copy of it placed in +# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in +# the /etc/systemd/sleep.conf.d/ directory. The latter is generally +# recommended. Defaults can be restored by simply deleting the main +# configuration file and all drop-ins located in /etc/. +# +# Use 'systemd-analyze cat-config systemd/sleep.conf' to display the full config. +# +# See systemd-sleep.conf(5) for details. + +[Sleep] +#AllowSuspend=yes +#AllowHibernation=yes +#AllowSuspendThenHibernate=yes +#AllowHybridSleep=yes +SuspendState=freeze #mem standby freeze +HibernateMode=platform # shutdown +#MemorySleepMode= +#HibernateDelaySec= +#HibernateOnACPower=yes +#SuspendEstimationSec=60min diff --git a/usr/home/.bash_aliases b/usr/home/.bash_aliases index 4b1a159..9a99690 100755 --- a/usr/home/.bash_aliases +++ b/usr/home/.bash_aliases @@ -29,11 +29,12 @@ alias s="sudo -E" function src() { d="$PWD"; while [ "$d" != "/" ]; do for a in "$d/bin/activate" "$d/.*/bin/activate"; do + #echo "looking bin/activate in $d" [ -f $a ] && source "$a" && break 2 done d=$(dirname "$d") done - source $HOME/.bashrc + source $HOME/.bashrc || true }