[oe-commits] Andre McCurdy : zram: remove bash dependency from init script
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 11 21:27:47 UTC 2015
Module: meta-openembedded.git
Branch: master-next
Commit: d7473e5be67eaf94ecbe1dfdc36fd4d122e5aea5
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=d7473e5be67eaf94ecbe1dfdc36fd4d122e5aea5
Author: Andre McCurdy <armccurdy at gmail.com>
Date: Mon Feb 9 17:20:47 2015 -0800
zram: remove bash dependency from init script
Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-extended/zram/zram/init | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-extended/zram/zram/init b/meta-oe/recipes-extended/zram/zram/init
index d126169..7b6cbf4 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
More information about the Openembedded-commits
mailing list