What script does the initialization of $DRV ?Ed_P wrote: ↑09 Feb 2022, 16:53Actually I editted the script to include:before the echos and added the line:Code: Select all
export DRV exit
to the /etc/rc.d/rc.local/ file and rebooted but echo $DRV is empty.Code: Select all
/home/guest/DRV.sh
![]()
/home/guest/DRV.sh or /etc/rc.d/rc.local (It is not /etc/rc.d/rc.local/ !)
I think when it's a variable previously unknown to the system you have to do it in /etc/rc.d/ - preferable using /etc/rc.d/rc.local
Just look into how the maintainers manage to get e.g. $PORTDIR to work - where it is initialized, and how it gets exported and where that exporting is coded…
Tell us when it succeeded.