Ich würde einfach mal das Image updaten.
Oder einfach
Code: Alles auswählen
opkg install bash
Code: Alles auswählen
opkg install bash
Code: Alles auswählen
Installing enigma2-plugin-extensions-embydream (1.1.7) on root.
/tmp/opkg-BSiJXG/enigma2-plugin-extensions-embydream-BBsZkJ/preinst: line 4: syntax error: bad substitution
To remove package debris, try `opkg remove enigma2-plugin-extensions-embydream`.
To re-attempt the install, try `opkg install enigma2-plugin-extensions-embydream`.
Collected errors:
* pkg_run_script: package "enigma2-plugin-extensions-embydream" preinst script returned status 2.
* preinst_configure: Aborting installation of enigma2-plugin-extensions-embydream.
* opkg_solver_install: Cannot install package enigma2-plugin-extensions-embydream.
Code: Alles auswählen
root@anadol4k:/tmp# opkg install enigma2-plugin-extensions-embydream_1.1.7rc1_armv7ahf-vfp-neon.ipk
Installing enigma2-plugin-extensions-embydream (1.1.7rc1) on root.
/tmp/opkg-pPUqrp/enigma2-plugin-extensions-embydream-HliQgp/preinst: line 5: syntax error: bad substitution
To remove package debris, try `opkg remove enigma2-plugin-extensions-embydream`.
To re-attempt the install, try `opkg install enigma2-plugin-extensions-embydream`.
Collected errors:
* pkg_run_script: package "enigma2-plugin-extensions-embydream" preinst script returned status 2.
* preinst_configure: Aborting installation of enigma2-plugin-extensions-embydream.
* opkg_solver_install: Cannot install package enigma2-plugin-extensions-embydream.
Code: Alles auswählen
reseller=$(grep creator /etc/image-version | cut -d"=" -f2)
reseller=${reseller,,}
reseller=${reseller%% *}
Code: Alles auswählen
ls -l /bin/sh
Code: Alles auswählen
ls -l /bin/bash
Code: Alles auswählen
bash --version
Code: Alles auswählen
root@anadol4k:~# reseller=$(grep creator /etc/image-version | cut -d"=" -f2)
root@anadol4k:~# echo $reseller
openATV
root@anadol4k:~# reseller=${reseller,,}
root@anadol4k:~# echo $reseller
openatv
root@anadol4k:~# reseller=${reseller%% *}
root@anadol4k:~# echo $reseller
openatv
root@anadol4k:~# ls -l /bin/sh
lrwxrwxrwx 1 root root 19 Mar 5 09:10 /bin/sh -> /bin/busybox.nosuid
root@anadol4k:~# ls -l /bin/bash
lrwxrwxrwx 1 root root 14 Jan 25 2021 /bin/bash -> /bin/bash.bash
root@anadol4k:~# bash --version
GNU bash, version 5.0.7(1)-release (arm-oe-linux-gnueabi)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@anadol4k:~#
Code: Alles auswählen
rm /bin/sh
ln -s /bin/bash.bash /bin/sh
Code: Alles auswählen
ls -l /bin/sh
Code: Alles auswählen
/bin/sh -> /bin/bash.bash
Code: Alles auswählen
#!/bin/sh
Code: Alles auswählen
rm /bin/sh
ln -s /bin/bash.bash /bin/sh
Code: Alles auswählen
/bin/bash.bash
Code: Alles auswählen
#!/bin/bash
Code: Alles auswählen
#!/bin/bash
reseller=$(grep creator /etc/image-version | cut -d"=" -f2)
reseller=${reseller,,}
reseller=${reseller%% *}
if [ "$reseller" = "vti" ] ; then
mytest=/usr/lib/enigma2/python/mytest.py
twisted=$(grep twisted.python.runtime.platform.supportsThreads $mytest | cut -d"=" -f2 | awk '{print $2}')
twisted=${twisted,,}
if [ "$twisted" = "false" ] ; then
echo "... twisted.python.runtime.platform.supportsThreads is False set to True"
if [ -f $mytest ] ; then
echo "... set twisted.python.runtime.platform.supportsThreads = True"
sed -i 's!twisted.python.runtime.platform.supportsThreads = lambda: False!twisted.python.runtime.platform.supportsThreads = lambda: True!g' $mytest
fi
fi
fi
echo $reseller
exit 0
Code: Alles auswählen
#!/bin/bash
reseller=$(grep creator /etc/image-version | cut -d"=" -f2)
reseller=${reseller,,}
reseller=${reseller%% *}
if [ "$reseller" = "vti" ] ; then
if [ ! -d /usr/lib/enigma2/python/Plugins/Extensions/JustWatch ] ; then
mytest=/usr/lib/enigma2/python/mytest.py
twisted=$(grep twisted.python.runtime.platform.supportsThreads $mytest | cut -d"=" -f2 | awk '{print $2}')
twisted=${twisted,,}
if [ "$twisted" = "true" ] ; then
echo "... twisted.python.runtime.platform.supportsThreads is True set to False"
if [ -f $mytest ] ; then
echo "... set twisted.python.runtime.platform.supportsThreads = False"
sed -i 's!twisted.python.runtime.platform.supportsThreads = lambda: True!twisted.python.runtime.platform.supportsThreads = lambda: False!g' $mytest
fi
fi
fi
fi
exit 0
Code: Alles auswählen
rm /bin/sh
ln -s /bin/bash.bash /bin/sh
Da muss nix am Image geändert werden.
Code: Alles auswählen
rm /bin/sh
ln -s /bin/bash.bash /bin/sh