RT-IPC_camera/komod/wifiko.sh

22 lines
366 B
Bash

#!/bin/sh
#wifi driver load and unload
KOPATH=/komod
if [ "$1" == "load" ] || [ "$1" == "" ]
then
echo LOAD wifi >&2
cd $KOPATH
#insmod cfg80211.ko
insmod mtprealloc.ko
insmod mt7601Usta.ko
elif [ "$1" == "unload" ]
then
echo UNLOAD wifi >&2
wpa_cli -i ra0 terminate >/dev/null 2>&1
rmmod mt7601Usta
rmmod mtprealloc
#rmmod cfg80211
fi