Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: aplannan on May 06, 2009, 06:25:10 PM
-
Wondering if anyone could tell me how to save my Netcardconfig settings. I have to manually change it from eth0 to eth1 everytime i reboot and then set it to DHCP. It would be great if I could just set it to do that by default. Thanks in advance
-
Wondering if anyone could tell me how to save my Netcardconfig settings. I have to manually change it from eth0 to eth1 everytime i reboot and then set it to DHCP. It would be great if I could just set it to do that by default. Thanks in advance
i think the first thing is to turn off dhcp from the boot option: nodhcp. if you're using grub as a bootloader it will be in: sudo find / grep -i menu.lst (that will tell you exactly where menu.lst is.)
then the line to add to /opt/bootlocal.sh is: /sbin/udhcpc -b -i eth0 -h box -p /var/run/udhcpc.eth0.pid
but you'll probably want to change eth0 to eth1. this will probably work, but i'm pretty sure someone will know a better way.
-
Thank you tobiaus. That got me close. The script you gave me does work if I manually execute my bootlocal.sh from emelfm2 but does not run automatically at boot. Hmmmm.
-
The script you gave me does work if I manually execute my bootlocal.sh from emelfm2 but does not run automatically at boot. Hmmmm.
yeah, it never works for me without sudo, or so i thought, but i thought bootlocal ran things as root anyway so 1) it should work in bootlocal 2) what's more, it shouldn't work for emelfm2 unless you're using emelfm2 as superuser. now 1 i have a guess about, the guess is that nodhcp is messing you up. i wouldn't think it should, but my experience with it is limited. i assume it just avoids setting up dhcp, i don't think it actually blocks you from doing so <- therefore ignore this guess please. not to worry, most people here understand this better.
-
Thanks again. I am using emelfm as su. And I tried using sudo to no avail. Oh well, I'll keep trying and let you know if I figure anything out.
-
FYI: if you select yes to "save configuration" in netcardconf, it will save a script in /opt/<interface>.sh
-
Yes, and I see the script in /opt but it does not seem to load at boot. I believe I'm using the newest version of TC. Neither /opt/bootlocal.sh nor /opt/eth1.sh seem to load at boot, is it possible that it is a bug?
-
/opt/ethX won't execute unless added to /opt/bootlocal.sh
You can easily perform such with the Tool menu item "Add to Bootlocal"
/opt/bootllocal.sh won't persist unless you have a backup from which to restore it, or choose to use a persistent opt. Have you performed a backup?
-
Hi roberts,
eth1.sh seems to be automatically added to bootlocal.sh, and yes I have been performing backups . I'm beginning to wonder if this is somehow connected to to my somewhat ragged install of fluxbox yesterday. I removed some lines from xsession. Are there any that would directly keep bootlocal from executing during startup. I was going to check my live cd tomorrow. Forgot that I had monkeyed around with so much yesterday!
-
Upon exiting the WM, exittc is typically run.
If your custom WM setup does not, then no backup.
You can always manually select to do so from control panel.