[maemo-developers] Howto detect fremantle in postinst script?

From: Till Harbaum / Lists lists at harbaum.org
Date: Thu May 14 21:50:29 EEST 2009
Hi,

i have been asked to redo my fremantle packages as they call 
maemo-select-menu-location which isn't present in fremantle 
anymore. Since i have configure scripts that cope with the
different maemo versions during compile/build time this is
the only thing left that isn't automated.

So what's the preferred method to detect whether the 
currently running system is a fremantle version? 

I really don't like the idea of maintaining seperate 
packages just for this tiny difference.

I am searching for something like

if [ "`maemo-version`" != "5" ]; then
  maemo-select-menu-location
fi

Till

More information about the maemo-developers mailing list