mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-10 04:30:00 +00:00
zram: remove bash dependency from init script
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
714a004cc1
commit
81508befad
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: zram
|
# Provides: zram
|
||||||
# Required-Start:
|
# Required-Start:
|
||||||
@@ -26,7 +26,7 @@ start() {
|
|||||||
#default Factor % = 90 change this value here or create /etc/default/zram
|
#default Factor % = 90 change this value here or create /etc/default/zram
|
||||||
FACTOR=90
|
FACTOR=90
|
||||||
#& put the above single line in /etc/default/zram with the value you want
|
#& 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
|
factor=$FACTOR # percentage
|
||||||
|
|
||||||
# get the amount of memory in the machine
|
# get the amount of memory in the machine
|
||||||
|
|||||||
Reference in New Issue
Block a user