permanently adding directory to $PATH in DDWRT Entware

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
atomicamp
DD-WRT User


Joined: 16 Apr 2018
Posts: 101
Location: Milwaukee, WI

PostPosted: Thu Jan 19, 2023 1:10    Post subject: permanently adding directory to $PATH in DDWRT Entware Reply with quote
I just installed entware on my DDWRT router. After installation I get the following message adding
Code:
/opt/bin
and
Code:
/opt/sbin
to the
Code:
$PATH
variable. Howver, in my DDWRT terminal (after sshing into it), there is not /root/.bashrc or /root/.profile to add these directories to my $PATH in ddwrt.

Code:
Info: If there are no errors above then Entware was successfully initialized.
Info: Add /opt/bin & /opt/sbin to $PATH variable
Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start
Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues


My question is, what file in DD-WRT is the equivelant of
Code:
$HOME/.bashrc
or
Code:
$HOME/.profile
in linux, so I can properly add these directories to my $PATH? How exactly do I change my $PATH variable in the DD-WRT Terminal?

Thanks

_________________
DanRanRocks - Tech Tutorials by Dan Ran

https://github.com/danrancan
dan@danran.rockst
My Blog https://danran.rocks
Join me on key base! and Add me on Keybase

Current Linksys WRT3200acm Firmware "DD-WRT v3.0-r51140 std (12/31/22)
Sponsor
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 358

PostPosted: Fri Jan 20, 2023 2:33    Post subject: Reply with quote
I've explained before how to generate .profile at startup. Search .profile in posts by yoyoma2.

Edit: This thread.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
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
You cannot attach files in this forum
You cannot download files in this forum