Unix Technical Forum

using aliases with ifconfig--- HOWTO

This is a discussion on using aliases with ifconfig--- HOWTO within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Yesterday RayzrShrp asked if there was a way to alias the return from ifconfig. I replied that the best ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 09:15 AM
JM
 
Posts: n/a
Default using aliases with ifconfig--- HOWTO

Yesterday RayzrShrp asked if there was a way to alias the return from
ifconfig. I replied that the best way would be to hack ifconfig to read an
alias file. So today I spent some time and hacked net-tools, where
ifconfig comes from, to read an alias file in /etc.

You can get it here:

http://home.comcast.net/~aardvark2/hacked-tools.html

You will need to compile from source to get it to work.

../configure
make
su
make install
{ for those that are just joining us }

And I suggest that you also download the unhacked version and run diff on
them. This will show what I did and that I didn't put anything malicious
in the code. Remember boys and girls always CYA.

Make sure you read the README-ALIAS-HACK file for instructions.

One more quick note. You only get the alias if ifconfig is called with no
arguments. If called with arguments you get the default behavior. If
there is no alias file you get the default behavior. If there is no alias
in the alias file you get the default behavior.

JM


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com