Skip to content

Instantly share code, notes, and snippets.

@mauromarano
Last active December 12, 2015 09:09
Show Gist options
  • Save mauromarano/4749345 to your computer and use it in GitHub Desktop.
Save mauromarano/4749345 to your computer and use it in GitHub Desktop.
Script che copia i settings con numerazione sky nel decoder
#!/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