]> git.openpandora.org Git - openpandora.oe.git/commitdiff
pandora-state: remove mmap limit
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 21:30:33 +0000 (23:30 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 27 Feb 2016 21:30:33 +0000 (23:30 +0200)
might be useful for emulators

recipes/pandora-system/pandora-state.bb
recipes/pandora-system/pandora-state/rc.pandora-state

index 4f5cc4a32a3073f42c5ef54d91711025ccf59282..c87375abb27bdf344a81e9f719bc1945d6a8f10e 100755 (executable)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "pandora-scripts"
 
-PR = "r25"
+PR = "r26"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
index cbdfb36bd2bd17bb816f9852f71b9de317b11018..82fdee7b6e3a16b6d69742ded1b236fd5bc959b6 100644 (file)
@@ -132,6 +132,9 @@ d_start() {
        if [ -e /sys/devices/platform/soc-audio/PCM1773/pmdown_time ]; then
                echo 60000 > /sys/devices/platform/soc-audio/PCM1773/pmdown_time
        fi
+
+       # remove the mmap limit, useful for emulators
+       echo 0 > /proc/sys/vm/mmap_min_addr
 }
 
 case "$1" in