]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
bash startfiles: Add file to make sure that all paths are available.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Nov 2012 12:50:36 +0000 (13:50 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Nov 2012 12:50:36 +0000 (13:50 +0100)
config/profile.d/extrapaths.sh [new file with mode: 0644]

diff --git a/config/profile.d/extrapaths.sh b/config/profile.d/extrapaths.sh
new file mode 100644 (file)
index 0000000..d712736
--- /dev/null
@@ -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