aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-02-09 17:20:47 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-02-12 19:35:40 +0100
commit81508befadbd7c2c2f0079b0db35333692bd77ee (patch)
treef496fce60712ed8318c82aa595c0991496ceafbf
parent714a004cc10fe3cdd9b9d424ba4f0449ea611459 (diff)
downloadmeta-openembedded-contrib-81508befadbd7c2c2f0079b0db35333692bd77ee.tar.gz
meta-openembedded-contrib-81508befadbd7c2c2f0079b0db35333692bd77ee.tar.bz2
meta-openembedded-contrib-81508befadbd7c2c2f0079b0db35333692bd77ee.zip
zram: remove bash dependency from init script
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-extended/zram/zram/init4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/zram/zram/init b/meta-oe/recipes-extended/zram/zram/init
index d12616936c..7b6cbf414c 100644
--- a/meta-oe/recipes-extended/zram/zram/init
+++ b/meta-oe/recipes-extended/zram/zram/init
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
### BEGIN INIT INFO
# Provides: zram
# Required-Start:
@@ -26,7 +26,7 @@ start() {
#default Factor % = 90 change this value here or create /etc/default/zram
FACTOR=90
#& put the above single line in /etc/default/zram with the value you want
- [ -f /etc/default/zram ] && source /etc/default/zram || true
+ [ -f /etc/default/zram ] && . /etc/default/zram || true
factor=$FACTOR # percentage
# get the amount of memory in the machine