| cyanescent 
 
 
 Joined: 25 Aug 2006
 Posts: 2
 
 
 | 
			
				|  Posted: Fri Sep 01, 2006 1:41 pm    Post subject: Fixing the $PATH for .uci extensions |   |  
				| 
 |  
				| 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
 |  |