WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] eth0.sh not running on boot?  (Read 2164 times)

Offline vr

  • Newbie
  • *
  • Posts: 17
[solved] eth0.sh not running on boot?
« on: April 15, 2010, 12:19:20 PM »
I have a problem bringing up eth0 on boot with my usbinstall to an internal flash drive...

I have opt/eth0.sh in /opt/bootlocal.sh.

eth0.sh contains:
ifconfig eth0 10.100.23.55 netmask 255.255.255.0 broadcast 10.100.23.255 up
route add default gw 10.100.23.1
echo nameserver 10.100.24.10 > /etc/resolv.conf
echo nameserver 10.100.24.11 >> /etc/resolve.conf

I have done filetool.sh backup before rebooting.

But when I reboot, route -n only lists the 127.0.0.1 entry. Am I missing a step?
« Last Edit: April 15, 2010, 01:22:10 PM by vr »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: eth0.sh not running on boot?
« Reply #1 on: April 15, 2010, 12:35:11 PM »
Are you booting with the option of nodhcp as might be conflicting with your IP request.
10+ Years Contributing to Linux Open Source Projects.

Offline vr

  • Newbie
  • *
  • Posts: 17
Re: eth0.sh not running on boot?
« Reply #2 on: April 15, 2010, 01:21:55 PM »
cool, that did the trick, thank you!