stimble_ | anyone know a way to list all the emitted events on a system? | 07:17 |
---|---|---|
=== keesj_ is now known as keesj | ||
=== h\h is now known as haraldh | ||
=== stimble__ is now known as stimble | ||
BuBU | Hi | 18:49 |
BuBU | I've a small question about upstart + scripts | 18:49 |
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:50 |
ion | It’s just sh, you could do e.g. ‘rmmod foo || :’ | 18:51 |
ion | Also, ‘modprobe -r foo’ doesn’t fail if foo isn’t loaded. | 18:52 |
BuBU | I've same problems with some stuff like PSB_EXISTS=$(lsmod|grep psb) | 18:53 |
BuBU | for some reasons this does not work if psb is not in the list | 18:54 |
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:55 |
ion | Rather don’t disable -e but write code that embraces the error handling you get from -e. | 18:57 |
BuBU | so things like that: PSB_EXISTS=$(lsmod|grep psb) | 18:58 |
BuBU | how can I write clean code ? :) | 18:58 |
ion | For instance, if lsmod | grep -q '^psb '; then ...; else ...; fi. But why are you doing that in the first place? | 19:00 |
BuBU | ok thx | 19:02 |
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:03 |
BuBU | thx ion | 19:06 |
BuBU | will check soon | 19:06 |
ion | Kernel modules should generally be loaded by udev. | 19:08 |
BuBU | I know | 19:08 |
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 | 19:09 |
=== robbiew is now known as robbiew_ |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!