From 5ed717ffd76018c482220c531b3f229de9f0a4ae Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Tue, 24 Apr 2012 04:04:11 +0200 Subject: [PATCH] pandora-state: Added ZRAM Swap enabling --- recipes/pandora-system/pandora-state.bb | 2 +- recipes/pandora-system/pandora-state/rc.pandora-state | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5