Damn Small Linux - Not!
The forum for DSL-N
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fixing the $PATH for .uci extensions

 
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks
View previous topic :: View next topic  
Author Message
cyanescent



Joined: 25 Aug 2006
Posts: 2

PostPosted: Fri Sep 01, 2006 1:41 pm    Post subject: Fixing the $PATH for .uci extensions Reply with quote

since uci executables are installed in /opt/xyz and /opt/xyz/bin, it makes sense to have your PATH modified on boot to include those directories. In my /etc/profile just before the line 'export PATH' I have:

[code:1]
for FILE in /opt/*; do
if [ -d ${FILE} ]; then
if [ -d ${FILE}/bin ]; then
PATH="${PATH}:$FILE/bin"
else
PATH="${PATH}:$FILE"
fi
fi
done
[/code:1]

You now need to add '/etc/profile' to your '~/.filetool.lst' if you are running frugal or live. Also make sure you have a backup setup properly...

Unfortunately sudo still reverts to the default PATH. Does anyone know how to fix that ?

Kind Regards

- Niel Drummond
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Damn Small Linux - Not! Forum Index -> DSL-N Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group