[Interest] Return value from QProcess

Duane duane.hebert at group-upc.com
Thu Apr 7 14:36:03 CEST 2016

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.

More information about the Interest mailing list