###############################################################################
# #
# IPFire.org - A linux based firewall #
###############################################################################
# #
# IPFire.org - A linux based firewall #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# #
###############################################################################
###############################################################################
# #
###############################################################################
###############################################################################
rm -rf /tmp/channels.conf
if [[ "$W_SCAN_TYPE" == *DVB-T* ]]; then
echo ":->W-SCAN DVB-T $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
rm -rf /tmp/channels.conf
if [[ "$W_SCAN_TYPE" == *DVB-T* ]]; then
echo ":->W-SCAN DVB-T $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
fi
if [[ "$W_SCAN_TYPE" == *DVB-C* ]]; then
echo ":->W-SCAN DVB-C $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
fi
if [[ "$W_SCAN_TYPE" == *DVB-C* ]]; then
echo ":->W-SCAN DVB-C $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
fi
if [[ "$W_SCAN_TYPE" == *DVB-S* ]]; then
for SATELLITE in $W_SCAN_SATELLITE;
do
echo ":->W-SCAN DVB-S $SATELLITE $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
fi
if [[ "$W_SCAN_TYPE" == *DVB-S* ]]; then
for SATELLITE in $W_SCAN_SATELLITE;
do
echo ":->W-SCAN DVB-S $SATELLITE $(date +%Y%m%d%H%M)" >>/tmp/channels.conf
if [ -e /opt/pakfire/db/installed/meta-vdr ]; then
yes_no "Install new channels-conf for VDR."
# Backup old channels conf...
if [ -e /opt/pakfire/db/installed/meta-vdr ]; then
yes_no "Install new channels-conf for VDR."
# Backup old channels conf...
- cp -f /opt/vdr/etc/channels.conf \
- /opt/vdr/etc/channels.conf.backup$(date +%Y%m%d%H%M)
- cp -f /tmp/channels.conf /opt/vdr/etc/
+ cp -f /etc/vdr/channels.conf \
+ /etc/vdr/channels.conf.backup$(date +%Y%m%d%H%M)
+ cp -f /tmp/channels.conf /etc/vdr/