Bash script on startup does not respond as expected

Hi,

I have a bash script which I have referenced in the rc.local of my fedora linux OS. However it doesnt respond the same as when run in terminal from fedora.

The bash script has a series of interactive questions that require user input as shown:

#!/bin/bash
echo "Do you want to use fixed IP address?"
read RESPONSE
...

When this script is run from terminal with Fedora i type in "yes" and the response is recorded as expected in varaible.

However the same script on bootup requires me to input the same thing twice on further examination the first input I type is irrelevant?!? Any ideas why it responds differently on bootup?

Cheers

Sounds like your script is being run twice. The question is: why?
Prefix the echo command with something like:

pstree -h 

Compare the first instance with the second. Maybe you'll learn that rc.local is being invoked twice somehow.