Run ir-keytable only if installed

This commit is contained in:
Alexander Grothe 2019-01-02 17:22:33 +01:00
parent 7dd080e9e7
commit 1622bbd6e6
3 changed files with 15 additions and 8153 deletions

File diff suppressed because it is too large Load Diff

View File

@ -801,10 +801,12 @@ case $1 in
;;
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
[ -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

View File

@ -8,10 +8,12 @@ case $1 in
;;
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
[ -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