Re: [rock-user] [PATCH] Allow the admin to set the MAC address to an interface

Benjamin Schieder <blindcoder-1k+CIuW/[email protected]> Sun, 06 Nov 2005 19:40:34 +0100
Newsgroups gmane.linux.distributions.rock.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bernd Petrovitsch wrote:
> --- /etc/network/modules/iproute2.sh-orig       2005-11-06
> 19:24:55.962157214 +0100
> +++ /etc/network/modules/iproute2.sh    2005-10-27 00:45:28.000000000
> +0200
> @@ -25,3 +25,8 @@
>         iproute2_init_if
>  }
> 
> +public_address() {
> +       code="ip link set $if address $1" ; shift
> +       addcode up 4 3 "$code"
> +       iproute2_init_if
> +}
> 
> Is from 2.0-stable.
> 
> 	Bernd

This is already in TRUNK. From package/base/iproute2/rocknet_iproute2.sh:
public_address() {
        addcode up 4 3 "ip link set $if address $1"
        iproute2_init_if
}

BTW, you might want to have a look at
http://shellscripts.org/project/rockcommitpatch

Greetings,
	Benjamin

- --
< blindcoder> I still say Violist didn't get it :P
< billnye> I say we have no evidence of it
< blindcoder> evidence is irrelevant
< blindcoder> it's rumors and believing that make truth
< blindcoder> -- me, now.
< billnye> objective reality, schmobjective reality -- me, paraphrasing, now.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDbk4ir0OTeImXvg8RApHAAKDS0PLPdeIwdlxjyvhC++CfJfWh5gCeI8tN
ilmspml7RjF0ZdgrwLKAMK0=
=2duM
-----END PGP SIGNATURE-----