Executing a script at startup
Hi all,
I want run a script at startup in fedora. I named this script rc.local and set it in /etc/rc.d path. The content of this script is:
#!/bin/sh -e
source /opt/Xilinx/14.6/ISE_DS/settings64.sh
and I make it executable (#chmod +x /etc/rc.d/rc.local). Settings64.sh set some environment variables. When I run it by "./rc.local" these environment variables are not set but when I execute by "source rc.local" these variables are set correctly. How can I execute this scripts on boot, successfully?
Please help me.
Thanks
|