From: Michael Mrozek Date: Tue, 24 Apr 2012 02:04:11 +0000 (+0200) Subject: pandora-state: Added ZRAM Swap enabling X-Git-Tag: sz_beta4~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=5ed717ffd76018c482220c531b3f229de9f0a4ae pandora-state: Added ZRAM Swap enabling --- diff --git a/recipes/pandora-system/pandora-state.bb b/recipes/pandora-system/pandora-state.bb index dafe2b0..8542f62 100755 --- a/recipes/pandora-system/pandora-state.bb +++ b/recipes/pandora-system/pandora-state.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "pandora-scripts" -PR = "r8" +PR = "r9" inherit update-rc.d INITSCRIPT_NAME = "pandora-state" diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index 09d6bfe..637f0b1 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -70,6 +70,10 @@ d_start() { sed -n '10p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scrolly_sensitivity sed -n '11p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scroll_rate sed -n '12p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/mbutton_threshold + echo "Enabling ZRAM Swap" + modprobe zram + mkswap /dev/zram0 + swapon -p 5 /dev/zram0 } case "$1" in