Sorry for the noob question. I'm trying to add to my PATH environment variable on startup, as well as set another variable. Unfortunately I'm not having much luck so presumably I'm going the wrong way about this..
1. I've enabled custom startup, dietpi-config > autostart options > 14 : Custom
2. I then added the following to custom.sh
echo "Setting up dotnet environment variables..."
echo "Starting amiberry service..."
service amiberry start
What happens is the system boots, amiberry start, without the last line it doesn't start, so I'm sure the script is doing "something". Unfortunately the environment variables do not get set. If I exit out of amiberry and type the 2 export commands manually, everything works as expected.
Any help would be greatly appreciated. Thanks.
Having issues with your DietPi installation or found a bug? Post it here.
2 posts • Page 1 of 1