aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/driver/rcconsole.cpp2
-rw-r--r--lib/dvb/frontend.cpp6
-rw-r--r--lib/gdi/bcm.cpp4
-rw-r--r--lib/gdi/fb.cpp4
-rw-r--r--lib/gdi/fb.h4
-rwxr-xr-xlib/python/Components/PluginComponent.py4
-rwxr-xr-xlib/python/Plugins/Plugin.py4
-rw-r--r--lib/python/Screens/TimerEdit.py2
-rwxr-xr-xlib/python/Tools/Directories.py2
-rwxr-xr-xtools/enigma2.sh.in5
10 files changed, 20 insertions, 17 deletions
diff --git a/lib/driver/rcconsole.cpp b/lib/driver/rcconsole.cpp
index 97a6e7c7..77f43227 100644
--- a/lib/driver/rcconsole.cpp
+++ b/lib/driver/rcconsole.cpp
@@ -103,7 +103,7 @@ class eRCConsoleInit
eRCConsoleDriver driver;
eRCConsole device;
public:
- eRCConsoleInit(): driver("/dev/vc/0"), device(&driver)
+ eRCConsoleInit(): driver("/dev/tty0"), device(&driver)
{
}
};
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index ea9e7385..b5de46c9 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1860,11 +1860,11 @@ int eDVBFrontend::tuneLoopInt() // called by m_tuneTimer
int slotid = sec_fe->m_slotid;
// FIXMEEEEEE hardcoded i2c devices for dm7025 and dm8000
if (slotid < 2)
- sprintf(dev, "/dev/i2c/%d", slotid);
+ sprintf(dev, "/dev/i2c-%d", slotid);
else if (slotid == 2)
- sprintf(dev, "/dev/i2c/2"); // first nim socket on DM8000 use /dev/i2c/2
+ sprintf(dev, "/dev/i2c-2"); // first nim socket on DM8000 use /dev/i2c-2
else if (slotid == 3)
- sprintf(dev, "/dev/i2c/4"); // second nim socket on DM8000 use /dev/i2c/4
+ sprintf(dev, "/dev/i2c-4"); // second nim socket on DM8000 use /dev/i2c-4
int fd = ::open(dev, O_RDWR);
unsigned char data[2];
diff --git a/lib/gdi/bcm.cpp b/lib/gdi/bcm.cpp
index 12b5f22a..ccf16f41 100644
--- a/lib/gdi/bcm.cpp
+++ b/lib/gdi/bcm.cpp
@@ -23,10 +23,10 @@ static int exec_list(void);
int bcm_accel_init(void)
{
- fb_fd = open("/dev/fb/0", O_RDWR);
+ fb_fd = open("/dev/fb0", O_RDWR);
if (fb_fd < 0)
{
- perror("/dev/fb/0");
+ perror("/dev/fb0");
return 1;
}
if (exec_list())
diff --git a/lib/gdi/fb.cpp b/lib/gdi/fb.cpp
index cde3e357..7ee555c1 100644
--- a/lib/gdi/fb.cpp
+++ b/lib/gdi/fb.cpp
@@ -83,12 +83,12 @@ nolfb:
int fbClass::showConsole(int state)
{
- int fd=open("/dev/vc/0", O_RDWR);
+ int fd=open("/dev/tty0", O_RDWR);
if(fd>=0)
{
if(ioctl(fd, KDSETMODE, state?KD_TEXT:KD_GRAPHICS)<0)
{
- eDebug("setting /dev/vc/0 status failed.");
+ eDebug("setting /dev/tty0 status failed.");
}
close(fd);
}
diff --git a/lib/gdi/fb.h b/lib/gdi/fb.h
index 54473805..fcb5ff27 100644
--- a/lib/gdi/fb.h
+++ b/lib/gdi/fb.h
@@ -19,7 +19,7 @@ class fbClass
int m_number_of_pages;
int m_phys_mem;
#ifdef SWIG
- fbClass(const char *fb="/dev/fb/0");
+ fbClass(const char *fb="/dev/fb0");
~fbClass();
public:
#else
@@ -41,7 +41,7 @@ public:
unsigned int Stride() { return stride; }
fb_cmap *CMAP() { return &cmap; }
- fbClass(const char *fb="/dev/fb/0");
+ fbClass(const char *fb="/dev/fb0");
~fbClass();
// low level gfx stuff
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py
index 93b08900..c6ad584f 100755
--- a/lib/python/Components/PluginComponent.py
+++ b/lib/python/Components/PluginComponent.py
@@ -122,8 +122,8 @@ class PluginComponent:
for x in where:
res.extend(self.plugins.get(x, [ ]))
-
- return res
+ res.sort(key=lambda x:x.weight)
+ return res
def getPluginsForMenu(self, menuid):
res = [ ]
diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py
index e26174a1..d87e6e96 100755
--- a/lib/python/Plugins/Plugin.py
+++ b/lib/python/Plugins/Plugin.py
@@ -61,7 +61,7 @@ class PluginDescriptor:
WHERE_SOFTWAREMANAGER = 14
- def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, needsRestart = None, internal = False):
+ def __init__(self, name = "Plugin", where = [ ], description = "", icon = None, fnc = None, wakeupfnc = None, needsRestart = None, internal = False, weight = 0):
self.name = name
self.internal = internal
self.needsRestart = needsRestart
@@ -78,6 +78,8 @@ class PluginDescriptor:
else:
self.icon = icon
+ self.weight = weight
+
self.wakeupfnc = wakeupfnc
self.__call__ = fnc
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py
index 54354987..bf60496f 100644
--- a/lib/python/Screens/TimerEdit.py
+++ b/lib/python/Screens/TimerEdit.py
@@ -176,7 +176,7 @@ class TimerEditList(Screen):
del list[:]
list.extend([(timer, False) for timer in self.session.nav.RecordTimer.timer_list])
list.extend([(timer, True) for timer in self.session.nav.RecordTimer.processed_timers])
- list.sort(cmp = lambda x, y: x[0].begin < y[0].begin)
+ list.sort(key = lambda x: x[0].begin)
def showLog(self):
cur=self["timerlist"].getCurrent()
diff --git a/lib/python/Tools/Directories.py b/lib/python/Tools/Directories.py
index 518db49d..8e4d0044 100755
--- a/lib/python/Tools/Directories.py
+++ b/lib/python/Tools/Directories.py
@@ -57,7 +57,7 @@ defaultPaths = {
SCOPE_USERETC: ("", PATH_DONTCREATE), # user home directory
SCOPE_DEFAULTDIR: (eEnv.resolve("${datadir}/enigma2/defaults/"), PATH_CREATE),
- SCOPE_DEFAULTPARTITION: ("/dev/mtdblock/6", PATH_DONTCREATE),
+ SCOPE_DEFAULTPARTITION: ("/dev/mtdblock6", PATH_DONTCREATE),
SCOPE_DEFAULTPARTITIONMOUNTDIR: (eEnv.resolve("${datadir}/enigma2/dealer"), PATH_CREATE),
SCOPE_METADIR: (eEnv.resolve("${datadir}/meta"), PATH_CREATE),
}
diff --git a/tools/enigma2.sh.in b/tools/enigma2.sh.in
index 5914c3f8..2f9292a4 100755
--- a/tools/enigma2.sh.in
+++ b/tools/enigma2.sh.in
@@ -2,9 +2,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
+datarootdir=@datarootdir@
-if [ -x @bindir@/showiframe -a -f /boot/backdrop.mvi ]; then
- @bindir@/showiframe /boot/backdrop.mvi
+if [ -x @bindir@/showiframe -a -f @datadir@/backdrop.mvi ]; then
+ @bindir@/showiframe @datadir@/backdrop.mvi
fi
# hook to execute scripts always before enigma2 start