Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] Setting wifi txpower automatically
Date: Mon, 15 Aug 2011 23:41:58
Message-Id: CAN0CFw1VXiFtHYzppnR=RFrRrTjfUKmOOJer6PcbLcbqv4juNg@mail.gmail.com
1 Is this in /etc/conf.d/net the best way to set txpower automatically?
2 postup also executes after net.lo and net.eth0 but I don't think it
3 will actually execute the iwconfig command unless it's net.wlan0.
4
5 postup() {
6 if [[ ${IFACE} == "wlan0" ]] ; then
7 iwconfig wlan0 txpower 0
8 fi
9 return 0
10 }
11
12 - Grant