Skip to content

Instantly share code, notes, and snippets.

@10sr
Created March 20, 2012 08:52
Show Gist options
  • Select an option

  • Save 10sr/2133000 to your computer and use it in GitHub Desktop.

Select an option

Save 10sr/2133000 to your computer and use it in GitHub Desktop.
wicd before connecting reload wlan module
#!/bin/sh
WLINTERFACE="`cat /etc/wicd/manager-settings.conf | grep wireless_interface | sed 's/.*= //'`"
if [ -e "/sys/class/net/$WLINTERFACE/device/driver" ]
then
WLDRIVER=`ls -l /sys/class/net/$WLINTERFACE/device/driver | sed 's#^.*/\([^/]*\)$#\1#'` # expect wl
else
WLDRIVER=""
fi
if [ "$WLDRIVER" != "" ]
then
modprobe -r $WLDRIVER
modprobe $WLDRIVER
# echo $WLDRIVER
fi
@10sr
Copy link
Author

10sr commented Mar 20, 2012

Acer Aspire One - ArchWikiから。
これを/etc/wicd/scripts/preconnect/reload_driver.shとして実行権限を付加して保存。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment