Skip to content
Snippets Groups Projects
Commit 033a731f authored by Patrick Robbe's avatar Patrick Robbe
Browse files

Improve reload script

parent fb958fd0
No related branches found
No related tags found
No related merge requests found
......@@ -173,8 +173,8 @@ fi
devs_removed=
if [ ${RELOAD_MODULE} -eq 1 ]; then
sudo rmmod lhcb_pcie40
sudo modprobe lhcb_pcie40
sudo rmmod pcie40
sudo insmod ${HOME}/software/Pcie40Driver/pcie40.ko
else
for dev in ${devs[@]}; do
if [ ${RELOAD_ALL} -eq 0 ] && [ -f "${dev}/pcie40_loaded" ] && [ $(< ${dev}/pcie40_loaded) -eq 1 ]; then
......@@ -253,5 +253,7 @@ if [ "$ok" -eq 0 ] && [ ${QUIET} -eq 0 ]; then
exit 1
fi
sudo chmod a+rwx /dev/pcie40_0_*
#ug`pcie40_reload.exit`
# 0 on success, 1 if issues have been encountered. In the latter case the last diagnostic messages from the driver are also printed to standard output.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment