Gentoo Archives: gentoo-dev

From: Kevin Bryan <bryank@××××××.edu>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: baselayout-1.11.12-r2 request for testers
Date: Sat, 04 Jun 2005 11:34:09
Message-Id: loom.20050604T125507-649@post.gmane.org
In Reply to: [gentoo-dev] baselayout-1.11.12-r2 request for testers by Mike Frysinger
1 Mike Frysinger <vapier <at> gentoo.org> writes:
2 >
3 > yes, it's finally that time ... after months of hearing us say 'we want to get
4 > new baselayout stable asap', we're serious
5 >
6 > so can people please try out baselayout-1.11.12-r2+ and see if they notice any
7 > regressions ? the 'best' tests are simply rebooting and seeing if your
8 > system comes up :)
9 >
10
11
12 I've been running the 1.11.x series since .8 with no problems (except the
13 parallel thing that was mentioned before). Good work!
14
15 I just wanted to share some of the coolness of the new scripts:
16
17 Let's say you have a wireless network that uses BlueSocket login. It's rather
18 annoying to have to load a web browser before you can start using the
19 connection. I wrote a little perl script to submit the form and call it from
20 postup(). (Email me if you want the script.)
21
22 A second bit of logic I added to postup() was to merge the settings from my
23 wireless card into the bonding interface. This works as follows:
24
25 local ESSID=$( wireless_get_essid eth1 )
26 if [ "${IFACE}" == "bond0" ] ; then
27 echo "ESSID: $ESSID"
28 if [ -z "$(eval echo \${config_${ESSID}})" ] ||
29 [ "$(eval echo \${config_${ESSID}})" == "dhcp" ] ; then
30 dhcpcd -t 5 bond0
31 else
32 echo $(eval echo "\${config_${ESSID}}")
33 ifconfig ${IFACE} $(eval echo "\${config_${ESSID}}")
34 (route -n | grep -q "^0.0.0.0") && route del default
35 route add $(eval echo "\${routes_${ESSID}}")
36 fi
37 fi
38
39 Note that I also have these lines for the bond0 interface:
40 slaves_bond0="eth0 eth1"
41 config_bond0=( "null" ) # I'll configure this later
42
43 The astute reader will notice that I got a little lazy and didn't use the
44 dhcpcd_xxx variables for that condition, but that wouldn't be too hard to hack
45 in there.
46
47 The end result of this is I can seemlessly go back and forth between the wired
48 and wireless worlds without losing network connections. It's great to be on
49 wireless, start a download, plug into the wired, and then get an immediate speed
50 boost!
51
52 Here's another hint for wireless users: Test your card's ability to respond to
53 iwconfig <card> txpower <val> commands. Then put whatever the max value is into
54 the /etc/conf.d/wireless preassociate() function. This should have a noticable
55 effect on your ability to connect to networks.
56
57 Thanks for making this all this possible!
58
59 --Kevin
60
61
62
63 --
64 gentoo-dev@g.o mailing list