From: Frank Brehm Date: Mon, 11 Feb 2019 10:11:31 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=cdd7eacdd1c38de096ba1f92aff57631ef17931c;p=config%2Fberta%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/env.d/50baselayout b/env.d/50baselayout index 1bf6bda..9efe6c7 100644 --- a/env.d/50baselayout +++ b/env.d/50baselayout @@ -1,7 +1,7 @@ # /etc/env.d/50baselayout # Do not edit this file -PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin" +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" MANPATH="/usr/local/share/man:/usr/share/man" INFOPATH="/usr/share/info" diff --git a/gentoo-release b/gentoo-release index 809babf..1735fa7 100644 --- a/gentoo-release +++ b/gentoo-release @@ -1 +1 @@ -Gentoo Base System release 2.4.1 +Gentoo Base System release 2.6 diff --git a/profile b/profile index 75c1f87..2afd51d 100644 --- a/profile +++ b/profile @@ -18,16 +18,14 @@ export PAGER=${PAGER:-/usr/bin/less} # 077 would be more secure, but 022 is generally quite realistic umask 022 -# Set up PATH depending on whether we're root or a normal user. -# There's no real reason to exclude sbin paths from the normal user, -# but it can make tab-completion easier when they aren't in the -# user's PATH to pollute the executable namespace. -if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then - PATH="${ROOTPATH}" -fi -export PATH unset ROOTPATH +# process *.sh files in /etc/profile.d +for sh in /etc/profile.d/*.sh ; do + [ -r "$sh" ] && . "$sh" +done +unset sh + if [ -n "${BASH_VERSION-}" ] ; then # Newer bash ebuilds include /etc/bash/bashrc which will setup PS1 # including color. We leave out color here because not all @@ -50,8 +48,3 @@ else # understand sequences such as \h, don't put anything special in it. PS1="${USER:-$(whoami 2>/dev/null)}@$(uname -n 2>/dev/null) \$ " fi - -for sh in /etc/profile.d/*.sh ; do - [ -r "$sh" ] && . "$sh" -done -unset sh