On Sun, Nov 22, 2009 at 16:15, Zoff <[email protected]> wrote: > --- > recipes/navit/files/navit.launcher | 43 ++++++++++++++++++++++------------- > 1 files changed, 27 insertions(+), 16 deletions(-) > > diff --git a/recipes/navit/files/navit.launcher > b/recipes/navit/files/navit.launcher > index b95aadb..df64ba9 100644 > --- a/recipes/navit/files/navit.launcher > +++ b/recipes/navit/files/navit.launcher > @@ -8,23 +8,34 @@ > # > ################################################################################# > # > -# 20080105 - v0.0.1 - Initial release > +# 20080105 - v0.0.1 - Initial release > +# 20090818 - - Zoff <[email protected]> addons and fixes > +# 20091025 - - Zoff check if navit already running > +# 20091122 - - Zoff use fsoraw, no more overcommit memory, use > correct LANG setting > +# > +# > +################################################################################# > > -# On devices with low memory (< 512Mb?) Navit will segfault on start. > -# This can be worked around by doing > -# "echo 1 > /proc/sys/vm/overcommit_memory" > > -if test "`cat /proc/meminfo | grep ^MemTotal | awk '{print $2}'`" -lt > "500000" > -then > - if test "$USER" = "root" > - then > - echo "Enabling low-mem workaround..." > - echo 1 > /proc/sys/vm/overcommit_memory > - else > - echo "I need root-privs to enable the low-mem workaround!" > - fi > -fi > +# check if navit already running: > +pgrep '^navit$' > +not_running=$? > > -navit.real $* > - > +if [ $not_running == 0 ]; then > + echo "navit already running !!" > +else > + echo "ok starting navit ..." > > + # HINT: to get correct LANG setting > + . /etc/profile > + > + # HINT: we need that for streetname search > + export LC_ALL='' > + unset LC_ALL > + > + # HINT: that should be set in illume, but atm its not > + # export LANG=de_AT.utf8 > + > + # HINT: navit requests GPS by itself already! > + fsoraw -r CPU,Display -- navit.real $* > +fi > -- > 1.6.0.4
Well, I don't want having Display resource requested when Navit is running... :x -- Sebastian Krzyszkowiak dos _______________________________________________ Shr-devel mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-devel
