Disable / enable remote from script

Hi!
Is there a way to disable / enable the LIRC remote from within a script?
When launching the browser from within kodi, I execute irexec to control
the browser via LIRC. But Kodi still catches up all commands in the
background, too. So I have to disable the remote in Kodi temporarely.
I launch the browser via shellscript, so I have to toggle the remote from
there.