[07:17] <stimble_> anyone know a way to list all the emitted events on a system?
[18:49] <BuBU> Hi
[18:49] <BuBU> I've a small question about upstart + scripts
[18:50] <BuBU> how to disable the stop on error stuff ?
[18:50] <BuBU> I mean ie in the script I'm doing I've things like rmmod mymodule
[18:50] <BuBU> but if mymodule is not loaded... then the script stops :(
[18:51] <ion> It’s just sh, you could do e.g. ‘rmmod foo || :’
[18:52] <ion> Also, ‘modprobe -r foo’ doesn’t fail if foo isn’t loaded.
[18:53] <BuBU> I've same problems with some stuff like PSB_EXISTS=$(lsmod|grep psb)
[18:54] <BuBU> for some reasons this does not work if psb is not in the list
[18:55] <BuBU> in fact behaviour in upstart is the same as when using set -e in a shell script
[18:55] <BuBU> so how to disable the set -e ?
[18:55] <BuBU> for upstart for my given script ?
[18:57] <ion> Rather don’t disable -e but write code that embraces the error handling you get from -e.
[18:58] <BuBU> so things like that: PSB_EXISTS=$(lsmod|grep psb)
[18:58] <BuBU> how can I write clean code ? :)
[19:00] <ion> For instance, if lsmod | grep -q '^psb '; then ...; else ...; fi. But why are you doing that in the first place?
[19:02] <BuBU> ok thx
[19:03] <BuBU> in fact I'm adding poulsbo (intel GMA500) support for an ubuntu live cd
[19:03] <BuBU> but I want to keep that livecd usable for non-GMA500 box
[19:06] <BuBU> thx ion
[19:06] <BuBU> will check soon
[19:08] <ion> Kernel modules should generally be loaded by udev.
[19:08] <BuBU> I know
[19:09] <BuBU> the problem is that poulsbo sucks :)
[19:09] <BuBU> it use a modified drm.ko
[19:09] <BuBU> which does not work with regular devices
[19:09] <BuBU> so needs to rename based on the board