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
 

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

reply to topic new topic new poll
Topic: bootlocal.sh not working during USB booting.< Next Oldest | Next Newest >
iunknown Offline





Group: Members
Posts: 4
Joined: Dec. 2004
Posted: Dec. 15 2004,01:56 QUOTE

I want to config the static IP in the USB system via giving ifconfig command in /opt/bootlocal.sh, but seems not working.
The command is as the following:
Code Sample

ifconfig eth0 ip 192.168.0.15 netmask 255.255.255.0 up
route add default gw 192.168.0.1
echo "nameserver actual_ip_goes_here" > /etc/resolv.conf


The whole command scripts in bootlocal.sh seems not working. Is there anthing I missed? Or is there any other way to auto add the static IP during booting?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Dec. 15 2004,02:31 QUOTE

Oh bootlocal.sh works just fine booting from usb.
I assume that you are using the backup method to save your bootlocal.sh.
For a simple test, I just did this.  Try the following.

Add this line to your bootlocal.sh

touch /home/dsl/this_is_a_test

If you have not made a backup, then be sure to do that, From control panel click on backup/restore then enter sda1 then click on backup.

When completed, you should see the backup.tar.gz if you do a ls /cdrom
Then shutdown, upon reboot your backup.tar.gz will be restores and the opt.bootlocal.sh will execute and finally you should see a zero byte file
/home/dsl/this_is_a_test

Now your static ip may be another issue. However, I do set my static ip via a usb boot as well
Back to top
Profile PM WEB 
iunknown Offline





Group: Members
Posts: 4
Joined: Dec. 2004
Posted: Dec. 15 2004,03:43 QUOTE

Hi roberts,

I got the this_is_a_test file, but still have no correct static IP . The bootlocal.sh is working, the ifconfig is not working.

I can't get the correct static IP till disable the DHCP during booting. But I don't know the reason.
Back to top
Profile PM 
2 replies since Dec. 15 2004,01:56 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: bootlocal.sh not working during USB booting.

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