2019-01-02 17:16:11 +01:00
|
|
|
#!/bin/bash
|
2018-10-27 14:46:53 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
pre)
|
|
|
|
/bin/systemctl stop vdr
|
|
|
|
/usr/local/bin/module-helper -u dvb_core
|
|
|
|
;;
|
|
|
|
post)
|
2019-01-02 17:16:11 +01:00
|
|
|
# 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
|
|
|
|
|
2018-10-27 14:46:53 +02:00
|
|
|
/usr/local/bin/module-helper -r
|
|
|
|
/bin/systemctl start vdr
|
|
|
|
;;
|
|
|
|
esac
|