| vik.reck@gmail.com 2006-02-21, 5:54 pm |
| Hello All,
Will appreciate solution to this.
I have 2 variables created(ETH_INTERFACE=ethX , IP_ADDR=A.B.C.D) by
a tool which runs from linuxrc during boot stage of linux( RHEL4 -
kernel 2.6.9).
I want to call "ifconfig $ETH_INTERFACE $IP_ADDR" from "linuxrc"
inside the RAMDISK.
Problem is i am unable to pass the value for these variables from my C
program to the linuxrc.
1. I tried writing a config file from my C program. But linuxrc( A
/sbin/nash script) can't interpret the syntax " .
/etc/settings_variable"
2. Also i could not just call another script "/var/bring_up_interface"
from linuxrc as NASH seems like prohobits executing another script.
"bring_up_interface" has " ifconfig ethX A.B.C.D" which was created
from my C program.
Note: C program creates these 2 variables from BIOS
thanks
-vikas
|