#!/bin/sh if [ "x$1" = "x" ]; then printf "Missing argument! (i.e. up or down)\n" exit 1 fi if [ "$1" = "up" ]; then lsmod | grep -q wlcore_sdio if [ "$?" = "1" ]; then modprobe -v wlcore_sdio fi modprobe -v wl12xx sleep 3 fi if [ "$1" = "down" ]; then modprobe -rv wl12xx sleep 1 modprobe -rv wlcore fi exit 0