Merge remote-tracking branch 'origin/master'
[enigma2-plugins.git] / elektro / CONTROL / postinst
1 #!/bin/sh
2 if [ `grep 'if current > -1 and wakeup < current:' /usr/lib/enigma2/python/Components/PluginComponent.py | wc -l` -eq 1 ]; then
3    echo "PluginComponent.py must be patched"
4    echo "Creating backup"
5    
6    cp /usr/lib/enigma2/python/Components/PluginComponent.py /usr/lib/enigma2/python/Components/PluginComponent.py.backup
7    ls -ll /usr/lib/enigma2/python/Components/PluginComponent.py*
8    
9    echo "Patching"
10    patch -p0 < /usr/lib/enigma2/python/Plugins/Extensions/Elektro/PluginComponent.py.patch
11    ls /usr/lib/enigma2/python/Components/PluginComponent.py*
12 else
13    echo "PluginComponent.py already patched"
14 fi
15
16 echo "########################################"
17 echo "#                                      #"  
18 echo "#   Restart Enigma2 to start Elektro   #"  
19 echo "#                                      #"  
20 echo "########################################"