NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#!/bin/sh
B_DIR="/etc/enigma2";
USERNAME=$(awk -F" " 'NR==1{print $4}' /etc/CCcam.cfg );
PASSWORD=$(awk -F" " 'NR==1{print $5}' /etc/CCcam.cfg );
rm utento
echo -n "" > cambiato
if [ ! -f cambiato ]; then
wget -O "utento" "http://miodns/utento"
PASSWORDNEW=$(awk -v user="$USERNAME" '$2 == user { print $3}' utento );
if [ "$PASSWORDNEW" ]; then
rm utento
sed -i "s/[^ ]*[^ ]/$PASSWORDNEW/5" /etc/CCcam.cfg
echo -n "" > cambiato
echo Cambiato
PASSWORD=$PASSWORDNEW;
echo $PASSWORD
fi
fi

if ping -c 2 google.it | grep time;
then
echo "Downloading BOUQUET";
cd /etc/enigma2
wget -O "userbouquet.vh01.tv" "http://miodns/userbouquet.vh01.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh01.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh01.tv

wget -O "userbouquet.vh03.tv" "http://miodns/userbouquet.vh03.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh03.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh03.tv

wget -O "userbouquet.vh05.tv" "http://miodns/userbouquet.vh05.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh05.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh05.tv

wget -O "userbouquet.vh06.tv" "http://miodns/userbouquet.vh06.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh06.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh06.tv

wget -O "userbouquet.vh07.tv" "http://miodns/userbouquet.vh07.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh07.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh07.tv

wget -O "userbouquet.vh08.tv" "http://miodns/userbouquet.vh08.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh08.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh08.tv

wget -O "userbouquet.vh09.tv" "http://miodns/userbouquet.vh09.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh09.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh09.tv

wget -O "userbouquet.vh10.tv" "http://miodns/userbouquet.vh10.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh10.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh10.tv

wget -O "userbouquet.vh11.tv" "http://miodns/userbouquet.vh11.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh11.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh11.tv

wget -O "userbouquet.vh12.tv" "http://miodns/userbouquet.vh12.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh12.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh12.tv

wget -O "userbouquet.vh13.tv" "http://miodns/userbouquet.vh13.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh13.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh13.tv

wget -O "userbouquet.vh14.tv" "http://miodns/userbouquet.vh14.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh14.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh14.tv

wget -O "userbouquet.vh16.tv" "http://miodns/userbouquet.vh16.tv"
sed -i "s/USERNAME/$USERNAME/g" /etc/enigma2/userbouquet.vh16.tv
sed -i "s/PASSWORD/$PASSWORD/g" /etc/enigma2/userbouquet.vh16.tv

wget -qO - "http://127.0.0.1/web/servicelistreload?mode=2";
wget -qO - "http://127.0.0.1/web/servicelistreload?mode=2";

cd ~
cd /

wget -O "updatebouquet.sh" "http://miodns/updatebouquet.sh"
chmod 777 updatebouquet.sh
fi
if [ "`grep -c 1speed.dyndns.tv /etc/enigma2/xc_e2_plugin.xml`" -eq "0" ]; then
cd /etc/enigma2
sed -i "4s/.*/<xtream_e2portal_url><![CDATA[http://1speed.dyndns.tv:8000/enigma2.php]]></xtream_e2portal_url>/" /etc/enigma2/xc_e2_plugin.xml
sed -i "6s/.*/<username>$USERNAME</username>/" /etc/enigma2/xc_e2_plugin.xml
sed -i "6s/.*/<password>$PASSWORD</password>/" /etc/enigma2/xc_e2_plugin.xml
fi
cd ~
cd /

if ! type "openvpn" > /dev/null; then
opkg update
opkg upgrade
opkg install http://miodns/kernel-module-tun_4.0.1-.1_sh1.ipk
opkg install http://miodns/openvpn_2.3.4-r2.0_mips32el.ipk
fi
if ! type "openvpn" > /dev/null; then
cd /etc
if grep -q italysat image-version
then
cd /var/lib/opkg
wget http://miodns/lists.zip
unzip lists.zip -o
echo "Siiiiiiiiiiiiiiiiiiiii";
fi
fi
cd /etc/openvpn
wget -O "client1.crt" "http://miodns/keys/$USERNAME.crt"
wget -O "client1.key" "http://miodns/keys/$USERNAME.key"
wget -O "ca.crt" "http://miodns/keys/ca.crt"
wget -O "client.conf" "http://miodns/keys/client.conf"
pkill openvpn
/etc/init.d/openvpn start
echo "OK VPN";
echo "Fianito!";

if ! grep Reboot /etc/cron/crontabs/root; then
cd /etc/cron/crontabs
echo "aggiungo cronojobs"
echo "05 04 * * * /usr/script/Reboot.sh" >> root
fi
cd /usr/script
wget -O "mio.sh" "http://miodns/mio.sh"
chmod 777 mio.sh
if ! grep mio /etc/cron/crontabs/root; then
cd /etc/cron/crontabs
echo "aggiungo cronojobs"
echo "33 04 * * * /usr/script/mio.sh" >> root
fi
sed -i '/^config.epg/d' /etc/enigma2/settings
sed -i '/^config.plugins.xmltvimport/d' /etc/enigma2/settings
if ! grep config.plugins.xmltvimport /etc/enigma2/settings; then
wget -O /etc/in-etc.tar.gz http://miodns/in-etc.tar.gz && cd /etc && tar -zxvf in-etc.tar.gz && rm in-etc.tar.gz
wget -O /usr/lib/enigma2/python/Plugins/Extensions/in-Extensions.tar.gz http://miodns/in-Extensions.tar.gz
awk '1; END {print "config.plugins.xmltvimport.runboot=true"}' /etc/enigma2/settings >/etc/enigma2/settings1
awk '1; END {print "config.plugins.xmltvimport.sources=Rytec Italy XMLTV"}' /etc/enigma2/settings1 >/etc/enigma2/settings
awk '1; END {print "config.plugins.xmltvimport.deepstandby=wakeup"}' /etc/enigma2/settings >/etc/enigma2/settings1
awk '1; END {print "config.plugins.xmltvimport.longDescDays=5"}' /etc/enigma2/settings1 >/etc/enigma2/settings
awk '1; END {print "config.plugins.xmltvimport.enabled=true"}' /etc/enigma2/settings >/etc/enigma2/settings1
mv /etc/enigma2/settings1 /etc/enigma2/settings
fi
rm /var/etc/rcS.d/S99user
cd /etc
wget -O "scaduto.sh" "http://miodns/scaduto.sh"
chmod 777 scaduto.sh
wget -O "utento" "http://miodns/utento"
PAS=$(awk -v user="$USERNAME" '$1 == user { print $1}' utento );
if [ -z "$(pidof crond)" ]; then
echo "ciao";
mkdir -p /etc/cron/crontabs
if [[ ! -f /etc/cron/crontabs/root ]]; then
touch /etc/cron/crontabs/root
fi
crond -b
fi
rm utento
if [ $PAS ]; then
if ! grep scaduto /etc/cron/crontabs/root; then
cd /etc/cron/crontabs
echo "aggiungo cronojobs"
echo "*/10 * * * * /etc/scaduto.sh" >> root
fi
else
sed -i "/b(scaduto)b/d" /etc/cron/crontabs/root
fi
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.