Sid Liu schrieb:
>
> Once I turn off hx4700 (Familiar 0.8.4), wifi stops working when I turn
> it back on. Is this still a problem? If yes, did you figure out a way to
> work around this? I use ifup and ifdown, but it didn't seem to work.
Reloading the acx module after resume helps. Not nice, but it works fine for
me. I attached my
modified /etc/apm/suspend.d/05ifupdown.
Cheers,
Michael
#!/bin/sh
# Unloads/loads all interface that are up at time of suspend
if [ "$1" = suspend ]; then
rm -f /var/run/ifstate-suspend
rm -f /var/run/ifstate-old
cp /var/run/ifstate /var/run/ifstate-old
cat /var/run/ifstate-old | (
IFS="="
while read IFACE LOGICAL; do
ifdown $IFACE
echo "$IFACE=$LOGICAL" >>/var/run/ifstate-suspend
done
rm -f /var/run/ifstate-old
)
elif [ "$1" = resume ] && [ "$2" != standby ] && [ -f /var/run/ifstate-suspend
]; then
rmmod acx
modprobe acx
cat /var/run/ifstate-suspend | (
while read LINE; do
ifup $LINE
done
)
rm -f /var/run/ifstate-suspend
fi
: exit 0
|