SCIENTIFIC-LINUX-USERS Archives

October 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 12 Oct 2011 14:27:55 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
On Wed, Oct 12, 2011 at 2:23 PM, Tom H <[log in to unmask]> wrote:
> On Wed, Oct 12, 2011 at 12:42 PM, carlopmart <[log in to unmask]> wrote:
>>
>>  Is it possible under SL6.1 to run a script (or insert commands in
>> ifcfg-ethX files) when a nic is up, immediatly after network script runs??
>> Like for example it can do with debian/ubuntu: post-up post-down.
>
> "/etc/sysconfig/network-scripts/ifup" calls
> "/etc/sysconfig/network-scripts/ifup-pre-local" and
> "/etc/sysconfig/network-scripts/ifup-post" calls
> "/etc/sysconfig/network-scripts/ifup-local".
>
> You can also create udev rules in "/etc/udev/rules.d".

Copy/paste mistakes: it's  "/sbin/ifup-pre-local" and "/sbin/ifup-local". Sorry.

ATOM RSS1 RSS2