1

How to make resume script wait for ivtv initialization

view story
linux-howto

http://askubuntu.com – I have a TV tuner card with an infrared sensor. I have made a script to remove/start ivtv kernel module and shutdown/restart lirc service on suspend/resume. The problem is that the lirc service start command runs before ivtv has found and initialized the hardware, so it fails. Is there a way to defer the lirc service start until after the hardware has been initialized? The script file is: /etc/pm/sleep.d/30_ivtv and its contents: #!/bin/sh # # Hauppauge PVR250 TV-card and TBS6680 DVB-card are dead after resume, fix it . /usr/lib/pm-utils/functions case "$1" in hibernate|suspend) (HowTos)