Try the command cd /tmp before issuing the sh command.
sh dsayers.sh means run the shell script found in the file dsayers.sh
There isn't a file called dsayers.sh in the current directory (probably root), it's in /tmp
Another way would be sh /tmp/dsayers.sh which would work whatever directory you were currently in.
#!/bin/sh
echo "Checking for AutoBouguetsMaker in the system..."
if [ -d /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker ] ; then
echo "AutoBouquetsMaker found."
echo
echo "Checking for an older version of customupdater in the system..."
if [ -d /usr/lib/enigma2/python/Plugins/Extensions/customupdater ] ; then
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/customupdater > /dev/null 2>&1
echo "An older version of customupdater was found and removed"
else
echo "customupdater was not found in the system"
fi
echo
echo "Proceeding to installation..."
opkg install /tmp/enigma2-plugin-extensions-customupdater_2.9_all.ipk
exit 0
else
echo "AutoBouguetsMaker was not found in the system"
echo
echo "Please install AutoBouguetsMaker before installing the plugin"
echo
read -n 1 -s -p "Press any key to continue..."
echo
exit 1
fi
]
To uninstall your plugin? In theory, with exit code 1 it shouldn't actually continue and exit out. Test itSo would I be best having opkg uninstall under echo "Please install AutoBouguetsMaker before installing the plugin"
https://raw.githubusercontent.com/davesayers2014/AutoBouquetsMaker/master/AutoBouquetsMaker/custom/sat_282_sky_uk_CustomMix.xml
How often is that file updated. It is dated: <!-- DATE 20170201 -->Code:https://raw.githubusercontent.com/davesayers2014/AutoBouquetsMaker/master/AutoBouquetsMaker/custom/sat_282_sky_uk_CustomMix.xml
BTW, I still don't understand why you lot are messing around with bash scripts.
06:53:07.5608 { D }
Traceback (most recent call last):
06:53:07.5611 { D } File "/usr/lib/enigma2/python/Components/ActionMap.py", line 68, in action
06:53:07.5617 { D } File "/usr/lib/enigma2/python/Components/ActionMap.py", line 48, in action
06:53:07.5621 { D } File "/usr/lib/enigma2/python/Screens/Menu.py", line 77, in okbuttonClick
06:53:07.5625 { D } File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
06:53:07.5631 { D } File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 284, in DsayersCustomMixImporterMain
06:53:07.5647 { D } session.open(DsayersCustomMixImporterScreen, 'dsayerscustommiximporter', 'SystemPlugins/DsayersCustomMixImporter', menu_path, PluginLanguageDomain)
06:53:07.5650 { D } File "/usr/lib/enigma2/python/mytest.py", line 326, in open
06:53:07.5665 { D } dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
06:53:07.5669 { D } File "/usr/lib/enigma2/python/mytest.py", line 264, in instantiateDialog
06:53:07.5681 { D } return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
06:53:07.5684 { D } File "/usr/lib/enigma2/python/mytest.py", line 286, in doInstantiateDialog
06:53:07.5696 { D } dlg = screen(self, *arguments, **kwargs)
06:53:07.5699 { D } File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 53, in __init__
06:53:07.5707 { D } Setup.__init__(self, session, setup, plugin, menu_path, PluginLanguageDomain)
06:53:07.5720 { D } TypeError: __init__() takes at most 4 arguments (6 given)
06:53:07.5729 [ E ] python/python.cpp:209 call (PyObject_CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap instance at 0x6ef82fa8>>,('OkCancelActions', 'ok')) failed)
]]>
07:20:18.8417 { D }
Traceback (most recent call last):
07:20:18.8419 { D } File "/usr/lib/enigma2/python/Components/ActionMap.py", line 68, in action
07:20:18.8425 { D } File "/usr/lib/enigma2/python/Components/ActionMap.py", line 48, in action
07:20:18.8429 { D } File "/usr/lib/enigma2/python/Screens/Menu.py", line 77, in okbuttonClick
07:20:18.8433 { D } File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
07:20:18.8437 { D } File "/usr/lib/enigma2/python/Plugins/SystemPlugins/DsayersCustomMixImporter/plugin.py", line 283, in DsayersCustomMixImporterMain
07:20:18.8463 { D } session.open(DsayersCustomMixImporterScreen, 'dsayerscustommiximporter', 'SystemPlugins/DsayersCustomMixImporter', menu_path, PluginLanguageDomain)
07:20:18.8468 { D } File "/usr/lib/enigma2/python/mytest.py", line 326, in open
07:20:18.8482 { D } dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
07:20:18.8485 { D } File "/usr/lib/enigma2/python/mytest.py", line 264, in instantiateDialog
07:20:18.8497 { D } return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
07:20:18.8499 { D } File "/usr/lib/enigma2/python/mytest.py", line 293, in doInstantiateDialog
07:20:18.8511 { D } dlg.applySkin()
07:20:18.8514 { D } File "/usr/lib/enigma2/python/Components/GUISkin.py", line 87, in applySkin
07:20:18.8519 { D } File "/usr/lib/enigma2/python/Components/GUISkin.py", line 75, in getTitle
07:20:18.8526 { D } KeyError: 'Title'
07:20:18.8529 [ E ] python/python.cpp:209 call (PyObject_CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap instance at 0x6f0ab210>>,('OkCancelActions', 'ok')) failed)
]]>