22 lines
469 B
Django/Jinja
22 lines
469 B
Django/Jinja
#!/bin/bash
|
|
{{ ansible_managed | comment }}
|
|
|
|
case $1 in
|
|
pre)
|
|
/bin/systemctl stop vdr
|
|
/usr/local/bin/module-helper -u dvb_core
|
|
;;
|
|
post)
|
|
# reload rc-core keytables
|
|
[ -x /usr/bin/ir-keytable ] && {
|
|
for remote in $(ir-keytable 2>&1 | grep rc/rc | egrep -o "rc[0-9]{1,}")
|
|
do
|
|
ir-keytable -a /etc/rc_maps.cfg --sysdev $remote
|
|
done
|
|
}
|
|
|
|
/usr/local/bin/module-helper -r
|
|
/bin/systemctl start vdr
|
|
;;
|
|
esac
|