ifconfig idea

Matt Palmer mpalmer at hezmatt.org
Wed Oct 5 04:33:51 UTC 2005


On Wed, Oct 05, 2005 at 11:09:21AM +0800, Senectus . wrote:
> Would it be difficult to build a script that when your do an
> ifconfig $ifnum up
> that it checks to see if the machine is setup to be static or DCHP and
> if it's set to DHCP then it will automatically to a
> dhclient $ifnum
> ?
> This would be useful for my laptop and some of the network hopping I
> do sometimes.

It's called ifup.  Less typing that ifconfig even.  Just run

ifup $ifnum

And it'll do exactly what you're asking for.

- Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051005/54e82e4d/attachment.sig>


More information about the ubuntu-users mailing list