yavdr-ansible/roles/yavdr-common/templates/system-sleep_yavdr.j2
2019-01-02 17:16:11 +01:00

20 lines
410 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
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