Skip to contentSkip to conversation

zram: remove bash dependency from init script

PATCH New Andre McCurdy 1 participant 1 message Feb 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zram: remove bash dependency from init script

---
 meta-oe/recipes-extended/zram/zram/init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/zram/zram/init +2 -2
index d126169..7b6cbf4 100644
@@ -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
Signature · 1 line
1.9.1