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

Bernd Petrovitsch <[email protected]> Sun, 06 Nov 2005 19:29:54 +0100
Newsgroups gmane.linux.distributions.rock.user
Organization http://www.firmix.at/
Message-ID <[email protected]>
--- /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
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services