Netcard config with backup data


Forum: Other Help Topics
Topic: Netcard config with backup data
started by: mune

Posted by mune on Jan. 05 2007,00:46
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

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

No, I will try the 'sleep' command.

Thanks

Fede

Posted by mune on Jan. 07 2007,15:02
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

Posted by ^thehatsrule^ on Jan. 07 2007,20:35
I think others put their network commands+sleep in /opt/bootlocal.sh which seems to work... you could try that out as well.
Posted by mune on Jan. 08 2007,16:17
:)
I did it.
I followed < this > post to know how to write the file /opt/bootlocol.sh .

Thanls

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.