fix stop_exmimo2 script to avoid kernel crashes
This commit is contained in:
@@ -8,8 +8,12 @@ if [ "$OPENAIR_DIR" == "" ]; then
|
|||||||
fi
|
fi
|
||||||
sudo -E bash -c 'echo 3 > /proc/sys/vm/drop_caches'
|
sudo -E bash -c 'echo 3 > /proc/sys/vm/drop_caches'
|
||||||
|
|
||||||
#load the module
|
exmimo_mod=`lsmod |grep openair_rf`
|
||||||
sudo -E $OPENAIR_DIR/cmake_targets/tools/init_exmimo2
|
#load the module only if absent to avoid kernel crashes
|
||||||
|
if [ -z "$exmimo_mod" ]
|
||||||
|
then
|
||||||
|
sudo -E $OPENAIR_DIR/cmake_targets/tools/init_exmimo2
|
||||||
|
fi
|
||||||
|
|
||||||
#now we stop the card from transmitting anything
|
#now we stop the card from transmitting anything
|
||||||
cd $OPENAIR_DIR/targets/bin
|
cd $OPENAIR_DIR/targets/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user