From 063573f750b978ca756a374c6be4a32ee8cad99b Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Mon, 5 Feb 2024 00:26:19 -0500 Subject: [PATCH] Update installentware.sh --- installentware.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/installentware.sh b/installentware.sh index 24b7cbc..fe94145 100644 --- a/installentware.sh +++ b/installentware.sh @@ -113,9 +113,9 @@ ln -s /lib/systemd/system/start-opt-mount.service /lib/systemd/system/multi-user # Update /etc/profile for PATH echo 'Info: Updating /etc/profile for PATH...' -if ! grep -q 'PATH=.*opt/bin' /etc/profile; then - sed -i 's|PATH="|PATH="/opt/bin:/opt/sbin:|' /etc/profile -fi +export PATH=/usrdata/opt/bin:/usrdata/opt/sbin:$PATH +echo 'Info: This is only temporary, you will need to do this for each shell session...' +echo 'Info: Run export PATH=/usrdata/opt/bin:/usrdata/opt/sbin:$PATH to do it' # Create and enable rc.unslung service echo 'Info: Creating rc.unslung service...' @@ -139,6 +139,7 @@ systemctl start rc.unslung.service echo 'Info: Congratulations!' echo 'Info: If there are no errors above then Entware was successfully initialized.' echo 'Info: Add /opt/bin & /opt/sbin to $PATH variable' +echo 'Info: Run export PATH=/usrdata/opt/bin:/usrdata/opt/sbin:$PATH to do it' if [ $TYPE = 'alternative' ]; then echo 'Info: Use ssh server from Entware for better compatibility.' fi