<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Niccolo Rigacci a écrit :
<blockquote cite="mid:20080608190655.GA16698@rigacci.org" type="cite">
<pre wrap="">On Sun, Jun 08, 2008 at 07:47:28PM +0200, jcsid wrote:
</pre>
<blockquote type="cite">
<pre wrap="">sleep 1 doesn't work in my eee...
</pre>
</blockquote>
<pre wrap=""><!---->
Damn! I just filed the bug!
Does a longer pause work?
</pre>
</blockquote>
<br>
Not 1, not 2 and not 10....<br>
I tried this and it works:<br>
<br>
#!/bin/sh<br>
<br>
wlan_control=/proc/acpi/asus/wlan<br>
enable() {<br>
if [ $(cat $wlan_control) = 0 ]; then<br>
rmmod pciehp<br>
modprobe pciehp pciehp_force=1<br>
echo 1 > $wlan_control<br>
modprobe ath_pci<br>
fi<br>
}<br>
disable() {<br>
if [ $(cat $wlan_control) = 1 ]; then<br>
ifdown --force ath0<br>
rmmod ath_pci<br>
echo 0 > $wlan_control<br>
fi<br>
}<br>
case $1 in<br>
on)<br>
enable<br>
if ! ifconfig ath0 up; then <br>
disable<br>
enable;<br>
fi<br>
;; <br>
off)<br>
disable<br>
;;<br>
*)<br>
echo "Usage: $0 [on|off]"<br>
exit 1<br>
;;<br>
esac<br>
<br>
<br>
</body>
</html>