Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Netcard config with backup data< Next Oldest | Next Newest >
mune Offline





Group: Members
Posts: 17
Joined: June 2006
Posted: Jan. 05 2007,00:46 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 05 2007,01:17 QUOTE

re timing issue: did you try sleep #?
Back to top
Profile PM 
mune Offline





Group: Members
Posts: 17
Joined: June 2006
Posted: Jan. 05 2007,14:40 QUOTE

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

No, I will try the 'sleep' command.

Thanks

Fede
Back to top
Profile PM 
mune Offline





Group: Members
Posts: 17
Joined: June 2006
Posted: Jan. 07 2007,15:02 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 07 2007,20:35 QUOTE

I think others put their network commands+sleep in /opt/bootlocal.sh which seems to work... you could try that out as well.
Back to top
Profile PM 
5 replies since Jan. 05 2007,00:46 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Netcard config with backup data

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code