Unix Shell - NASH for linuxrc (linux initrd script)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > February 2006 > NASH for linuxrc (linux initrd script)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author NASH for linuxrc (linux initrd script)
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com