RT-IPC_camera/komod/wifiapko.sh

21 lines
337 B
Bash

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