Skip to content

Instantly share code, notes, and snippets.

@mauromarano
Last active February 15, 2017 14:40
Show Gist options
  • Save mauromarano/a0852c81c5cb849071b5 to your computer and use it in GitHub Desktop.
Save mauromarano/a0852c81c5cb849071b5 to your computer and use it in GitHub Desktop.
Updates the dreambox's settings
#!/bin/sh
####################
##### HOW TO USE####
####################
# 1) crontab -e
# 2) paste: 30 21 * * * sh updater.sh
# 3) chmod +x updater.sh
# Requirements
# 1) wget
# 2) unzip
# downloads the Vhannibal Hot Bird 13°E settings
wget -O download.zip "http://www.vhannibal.net/download_setting.php?id=9&action=download"
# unzip it
unzip download.zip
# rename the download folder
mv Vh* download
# install the settings
cp download/satellites.xml /etc/tuxbox
cp -r download/* /etc/enigma2
# deletes the used files
rm -rf download*
# Deletes all bouquets but TOP ITALIA
mv /etc/enigma2/userbouquet.vh01.tv /etc/enigma2/userbouquet.TOP_ITALIA.tv
ls /etc/enigma2 | grep "vh" | while read var; do rm /etc/enigma2/$var; done
cat /etc/enigma2/bouquets.tv | sed "s/.\+vh.\+//" > /etc/enigma2/bouquets.tv
echo "#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET \"userbouquet.TOP_ITALIA.tv\" ORDER BY bouquet" >> /etc/enigma2/bouquets.tv
# This reload the bouquets without needing to reboot. Do not work on evry decoder
wget -qO - "http://127.0.0.1/web/servicelistreload?mode=2"
wget -qO - "http://127.0.0.1/web/servicelistreload?mode=2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment