diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2015-02-09 17:20:47 -0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-02-12 19:35:40 +0100 |
commit | 81508befadbd7c2c2f0079b0db35333692bd77ee (patch) | |
tree | f496fce60712ed8318c82aa595c0991496ceafbf /meta-oe/recipes-extended/zram | |
parent | 714a004cc10fe3cdd9b9d424ba4f0449ea611459 (diff) | |
download | meta-openembedded-81508befadbd7c2c2f0079b0db35333692bd77ee.tar.gz |
zram: remove bash dependency from init script
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/zram')
-rw-r--r-- | meta-oe/recipes-extended/zram/zram/init | 4 |
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 d12616936..7b6cbf414 100644 --- a/meta-oe/recipes-extended/zram/zram/init +++ b/meta-oe/recipes-extended/zram/zram/init | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | ### BEGIN INIT INFO | 2 | ### BEGIN INIT INFO |
3 | # Provides: zram | 3 | # Provides: zram |
4 | # Required-Start: | 4 | # Required-Start: |
@@ -26,7 +26,7 @@ start() { | |||
26 | #default Factor % = 90 change this value here or create /etc/default/zram | 26 | #default Factor % = 90 change this value here or create /etc/default/zram |
27 | FACTOR=90 | 27 | FACTOR=90 |
28 | #& put the above single line in /etc/default/zram with the value you want | 28 | #& put the above single line in /etc/default/zram with the value you want |
29 | [ -f /etc/default/zram ] && source /etc/default/zram || true | 29 | [ -f /etc/default/zram ] && . /etc/default/zram || true |
30 | factor=$FACTOR # percentage | 30 | factor=$FACTOR # percentage |
31 | 31 | ||
32 | # get the amount of memory in the machine | 32 | # get the amount of memory in the machine |