Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Suse Linux - 1 line command on startup?

I want to have multiple ip addresses. All I want to do is execute 1 line automatically as root at or near the end of startup.

/sbin/ifconfig eth0:1 192.168.1.245

Where can / should I put this? (not an rc file, please. It should not take 200 lines of script to do this).

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    echo "/sbin/ifconfig eth0:1 192.168.1.245" >/etc/rc.d/rc.local

    put u every command in rc.local ; rc.local is executed every time the sistem bootup !!

  • IT Pro
    Lv 6
    1 decade ago

    Add that one line to your init.d file.

Still have questions? Get your answers by asking now.