Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122224 - baselayout 1.11.14-r3 - init script does not set mac address
Summary: baselayout 1.11.14-r3 - init script does not set mac address
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-09 02:18 UTC by Michal Suchanek
Modified: 2006-02-09 06:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2006-02-09 02:18:14 UTC
I put 

mac_e100="00:01:02:B0:E7:3B";
config_e100="dhcp";

in /etc/conf.d/net but after an update of baselayout the mac address is no longer set by the init scripts.

pre_up hack to do it is quite simple:

        mac=`eval echo \"\$\{mac_"$IFACE"\}\"`
        if [ -n "$mac" ] ; then
          ifconfig "${IFACE}" hw ether "$mac"
        else
          true
        fi
        
        return $?


Portage 2.0.54 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks maketest nostrip sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X accessibility aim alsa apache2 audiofile berkdb bzip2 crypt cups curl debug dlloader dmx doc dri esd examples exif expat foomaticdb fpx gd gdbm gif gimpprint glitz glut gpm gs gtk hardened icq icu imagemagick imlib ipv6 irc jabber java jbig jpeg kerberos krb4 lcms ldap libclamav libwww lua mmx mng mono motif mozilla mpeg msn ncurses nls nsplugin offensive opengl pam pcre perl pic png ppds python readline recode ruby samba sasl spell sse ssl svg tcpd threads tiff truetype truetype-fonts udev unicode userlocales wmf x86 xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-02-09 02:33:04 UTC
e100 should be eth0 as we only deal with interface names and not driver names

mac_eth0="00:01:02:B0:E7:3B"
config_eth0=( "dhcp" )

That should work - you'll need to emerge macchanger for using baselayout-1.11, but you don't have to if you're using baselayout-1.12
Comment 2 Michal Suchanek 2006-02-09 06:54:28 UTC
e100 is my interface name, I renamed it.
And it really works in 1.12 (pre15-r1).

Thanks