1 |
On Sun, 20 Apr 2008 16:42:41 -0500, »Q« wrote: |
2 |
|
3 |
> I wish I knew how to keep it from going off in the first place, |
4 |
|
5 |
It's probably a good thing, especially if your laptop's battery is as |
6 |
rubbish as mine |
7 |
|
8 |
> for now I'll just give an alias to |
9 |
> "/etc/init.d/net.wlan0 stop && iwconfig wlan0 txpower on |
10 |
> && /etc/init.d/net.wlan0 start" |
11 |
|
12 |
There's no need to mess around with aliases, the network scripts can |
13 |
handle this automatically. Add this to /etc/conf.d/net |
14 |
|
15 |
preup() { |
16 |
[[ ${IFACE} == "wlan0" ]] && iwconfig wlan0 txpower on |
17 |
return 0 |
18 |
} |
19 |
|
20 |
|
21 |
-- |
22 |
Neil Bothwick |
23 |
|
24 |
Pentium is a risk processor |