Laptops :: dsl won't keep netcard config
How do i set things up so that dsl remembers my lan setup on boot? I have done a hdd install of dsl syslinux 1.1
It's kind of a pain in the butt always having to re-set the config. ;)
Thanks for your time!
After a whole lotta poking around, I figured out the solution myself...here's how I did it (hope this helps someone else too)
NOTE: this is for connecting your machine to a LAN, not directly to the internet.
1. open the file /opt/bootlocal.sh
2. at the end of the existing entries, on a new line, add the following (DO NOT INCLUDE THE ANGLE-BRACKETS) :
ifconfig eth0 <your desired lan IP> netmask <your lan netmask> broadcast <your broadcast IP> up
EXAMPLE:
ifconfig eth0 192.168.1.33 netmask 255.255.255.0 broadcast 192.168.1.255 up
3. on the next line, add this (DO NOT INCLUDE THE ANGLE-BRACKETS) :
route add default gw <your lan gateway IP>
EXAMPLE:
route add default gw 192.168.1.1
4. Save the file and reboot.
You should be connected to your lan on bootup now.
NOTE: if this gives you problems with your system, reboot, and use this at the "BOOT:" prompt...
dsl 2
that will take you into text mode only. use the command "sudo nano /opt/bootlocal.sh" to open the file in an editor, then add a "#" (no quotes) at the start of the two lines you added. Exit the editor (you'll be asked to save) and reboot.
original here.