Last active
December 12, 2015 09:09
-
-
Save mauromarano/4749345 to your computer and use it in GitHub Desktop.
Script che copia i settings con numerazione sky nel decoder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "*****************************************" | |
echo "****Script powered by mauromarano.it****" | |
echo "*****************************************" | |
echo "This script will use scp to copy the files into your decoder." | |
echo "Be sure tu run this script from the folder with the right settings." | |
echo "[*] Enter the local ip adresses of your decoder: " | |
read IP | |
echo "[*] Enter the username with you want to connect: " | |
read USERNAME | |
clear | |
echo "Copying settings.." | |
scp satellites.xml $USERNAME@$IP:/etc/tuxbox | |
clear | |
rm -f satellites.xml terrestrial.xml | |
scp -r * $USERNAME@$IP:/etc/enigma2 | |
clear | |
ssh $USERNAME@$IP rm /etc/enigma2/$0 | |
echo "Everything done successfully. Please visit mauromarano.it for support." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment