arrrgghhhh ! how the hell do you re-install scripts on already exists error putty

Hi all,

I hope somebody can answer this one please as server doesn't seem to have answer !

So i have me, family and quite a few mates on same iptv server.

He has since changed the script and said i need to update all boxes on the server, the big problem is when i try to re-install i get "already exists error" on putty and the only way around this at the moment is bloody flashing the box which in some cases "old-school customers" not an option !

Can someone offer any advice if this can be done another way !

Many thanks guys
 
Ive read on here that If you have the script method for installing via putty your provider can send you another script that will remove old details allowing you to then install fresh & run your new script, check with your provider.
Another way is to have a saved up to date image without a script on it.... flash boxes with this saved 'base' image before installing your 'new' script
 
If it is on enigma2 box have a look with filezilla or dream explorer and try and find the original script file. On mine running openatv it was at bottom of list in / once found I deleted it and loaded script from new provider. Mine was called script.sh and was an individual file not a folder. Just be careful what you delete if you don't want to brick it. I would try as BeakyFord says regarding contacting supplier first.
 
You need to update script in such a way so that script will by passing checking file prior to placing new. Can I see contain of script to understand logic of script. Once I see script contain then suggest more

Sent from my SM-G928F using Tapatalk
 
FTP to the box and delete the script.sh1 file in all files, some scripts also require you to delete the iptv.sh shell scripts in etc-enigma2. You could also use dreamexplorer to do this from the box.


Sent from my iPhone using Tapatalk
 
Plz give this link .. and if possible change your account password accidentally or unknowingly you have shared it here. ... I am only interested in script so need to know xxxxx.ly so that I can download script

Sent from my SM-G928F using Tapatalk
 
SSH to the box and remove /usr/bin/enigma2_pre_start.sh - this sets iptv.sh to run on restart which causes all bouquets to be deleted

rm /usr/bin/enigma2_pre_start.sh

Use the box GUI to delete the bouquet that iptv.sh creates Open the bouquet list.
With the Example bouquet selected, press the menu button there should be an option to remove the entry Remove iptv.sh

or run this in your SSH

rm /etc/enigma2/iptv.sh
 
Last edited:
It should be in the directory where you ordinarily "arrive at" when you first login to your zgemma - - - probably /home/root
If you just login to your zgemma as normal, (ie with putty or whatever you use), and run the command
Code:
ls -l
it will list the files there in that directory so you can see the lie of the land at least. At that stage, you can either remove/delete the existing one using the rm command as previously mentioned or rename it using the mv command. Either way, that will clear the decks for you so that when you wget get the file which is the first part of the operation of running your new script it will be downloaded to your zgemma's file system as required.
 
Your provider should be able to tell you as anything can be added with the script so we are just guessing what files needs removing.

Try to putty this

Code:
init 4 && sleep 10 && rm -f /etc/defaultsat.tar.gz && rm -f /etc/enigma2/lamedb && rm -f /etc/enigma2/*.tv && rm -f /etc/enigma2/*.radio && rm -f /etc/enigma2/*.sh && rm -f /etc/enigma2/*.del && rm -f /usr/bin/*.sh && rm -f /home/root/*.sh && init 3

If it works that should wipe all channel data including any sat, cable or radio channels, you might be better just re-flashing
 
Login to box and execute this command 'find / -type f -name iptvscript2.py' you wil get location of script. Simply upload script here. Until understand script, won't be able to tell why and what point script is throwing error. Also suggest you to try avoiding execute any dangerous command example 'rm '. Must try to understand what python script does. I am system Unix administrator and also have written lots of python script.. not only normal script but also multithreading too

Sent from my SM-G928F using Tapatalk
 
I have managed to find script. Just follow steps. Should work fine. Let me know if you get further error.
1) login to E2 box by putty or any ssh client
2) execute this command:
wget http://XXXXX.ly/enigma2/IPTVFiles/scripts/iptvscript2.py && chmod 775 iptvscript2.py && python iptvscript2.py -unintallall && python iptvscript2.py -n XXXXX -u Bg21 -p 230817

Note: make sure you take backup before executing command

Sent from my SM-G928F using Tapatalk
 
Back
Top