Other Help Topics :: Netcard config with backup data



DSL  boots up from the CD the DSL reads the file backup.tar.gz and some files are unpacked in /home/dsl

The CD I use to boot from is a remastered one and the major diff if in /etc/inittab, where the system is instructed to execute a shell script that is in a subfolder of /home/dsl .

Everything works until in the script there is
Code Sample
######################################################################
# netcard setup
/bin/cp /home/dsl/TEScript/NetSetup /etc/network/interfaces
/etc/init.d/networking restart


Where the file named NetSetup is
Code Sample
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


iface eth0 inet static
       address 192.168.1.3
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255
       gateway 192.168.1.1

When the boot process is over I open shell and I check with 'ifconfig'.
There is no eth0.
I do 'sudo /etc/init.d/networking restart' and with next 'ifconfig' the eth0 is in its place.
I figured out that it is a timing issue but the 'at' command is not present.

Any ideas?

Thanks

Fede

re timing issue: did you try sleep #?
Quote (^thehatsrule^ @ Jan. 04 2007,20:17)
re timing issue: did you try sleep #?

No, I will try the 'sleep' command.

Thanks

Fede

Quote (mune @ Jan. 05 2007,09:40)
Quote (^thehatsrule^ @ Jan. 04 2007,20:17)
re timing issue: did you try sleep #?

No, I will try the 'sleep' command.

Thanks

Fede

I did it, ut while in the shell it works (it stops foa an amount of time), during the boot it doesn't nothing.
:(
Fede

I think others put their network commands+sleep in /opt/bootlocal.sh which seems to work... you could try that out as well.
Next Page...
original here.