On 06/04/2016 3:00 PM, Jérôme Godbout wrote:
You should use a more complete bash command that perform the insert mod,
not an actual command but just the raw idea here:
if [[ $(lsmod | grep "Profibus") != "ProfileBus" ]]; then insmod Profibus fi
Maybe you should check with modprobe to check if the -i or -f flag can
help you to get proper behavior.
That way your command will return error only when the insert fail and
you will not insert mod when already there.
Thanks. I've done something similar.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest