[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Hot swapping Ethernet Cards



skhader@xxxxxxxxxx forced the electrons to say:
> Can anybody here provide me with a script for the same and the relevant
> crontab entry.

something like:

#! /bin/sh

if ! /sbin/ifconfig eth0; then
   #switch to the second card...
fi

should work.

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.