I am sorry Charles, but it looks like I am confused.  Here is the patch for
the modutils file:

@@ -27,6 +27,7 @@
                                umount) [ -n "$MOUNT" ] && umount $MOUNT
                                        MOUNT="" ;;
                                dir)    DIR="$2" ;;
+                               LLADDR) ip link set $2 address $3 ;;
                        esac
                        continue ;;
        esac


I see one case statement in the current modutils file, but there are two in
this patch.  I don't see a case for the bang command.

Have a great day!

Geoff


-----Original Message-----
From: Charles Steinkuehler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 27, 2004 3:59 PM
To: Geoff Nordli
Subject: Re: [leaf-user] set MAC address manually on eepro100 card

Geoff Nordli wrote:

> Hi Charles.
> 
> I couldn't get it to work correctly.  I ended up having this in my
> /etc/init.d/modutils file:
> 
> case "$module" in
>       \#*|"") continue ;;
>       LLADDR) ip link set $2 address $3 ;;
> esac 
> 
> Then at the bottom of the /etc/modules file I put:
> 
> ! LLADDR eth1 00:02:B3:61:1E:0E
> 
> I also tried 
> 
> LLADDR eth1 00:02:B3:61:1E:0E
> 
> To make it work I created a script that configured the MAC address set it
to
> start (S,S21) right after the networking get configured.  This seems to be
> working well, but I would much rather figure out why the modutils script
> doesn't work correctly.

Off-hand, it looks like you put the ip link set line in the wrong case 
statement (for the module instead of the one for the 'bang' command 
(!)).  The diff sent to the list was actually tested by me, so I know it 
should work.

-- 
Charles Steinkuehler
[EMAIL PROTECTED]




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to