From: Michael Tremer Date: Thu, 15 Nov 2012 12:50:36 +0000 (+0100) Subject: bash startfiles: Add file to make sure that all paths are available. X-Git-Tag: v2.13-beta1~62^2 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=83cc9084a9c86d64cc092ae766cf0884b44f6e24 bash startfiles: Add file to make sure that all paths are available. --- diff --git a/config/profile.d/extrapaths.sh b/config/profile.d/extrapaths.sh new file mode 100644 index 0000000000..d712736bd3 --- /dev/null +++ b/config/profile.d/extrapaths.sh @@ -0,0 +1,11 @@ +# Make sure the basic paths are always available. + +pathmunge /bin +pathmunge /usr/bin +pathmunge /usr/local/bin + +for directory in $(find /opt/*/bin -maxdepth 1 -type d 2>/dev/null); do + pathmunge ${directory} after +done + +unset directory