From 359c2a96f26409ef7e4277afb62ff21bd7b06d5c Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 23 Oct 2012 15:26:08 +0200 Subject: [PATCH] bash: add local addons to $PATH Signed-off-by: Stephan Raue --- packages/sysutils/bash/profile.d/path.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/sysutils/bash/profile.d/path.conf b/packages/sysutils/bash/profile.d/path.conf index 1974130c7c..38a1386090 100644 --- a/packages/sysutils/bash/profile.d/path.conf +++ b/packages/sysutils/bash/profile.d/path.conf @@ -26,8 +26,12 @@ PATH="/bin:/sbin:/usr/bin:/usr/sbin" # hack: add addons to $PATH - for i in `find /storage/.xbmc/addons/* -name bin -type d`; do - PATH="$PATH:$i" + for addons in `find /storage/.xbmc/addons/* -name bin -type d`; do + PATH="$PATH:$addons" + done + + for sys in `find /usr/lib/xbmc/addons/* -name bin -type d`; do + PATH="$PATH:$sys" done export PATH