aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Casa <samuel.casa@neratec.com>2018-08-07 10:49:22 +0200
committerJo-Philipp Wich <jo@mein.io>2018-12-18 17:22:04 +0100
commitac7c30708f8be29016bae7490d32405713083fd5 (patch)
tree49784c418d10f4b2016c5dcdd920fef5d520b703
parentd275b30414dc71c5cd633d7e4a8cf882fc5e49d5 (diff)
downloadupstream-ac7c30708f8be29016bae7490d32405713083fd5.tar.gz
upstream-ac7c30708f8be29016bae7490d32405713083fd5.tar.bz2
upstream-ac7c30708f8be29016bae7490d32405713083fd5.zip
zram-swap: remove trailing whitespaces in init script
Signed-off-by: Samuel Casa <samuel.casa@neratec.com> [slightly reword subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (backported from b291517fdf5a698726fe94010055ec90d85f365a)
-rw-r--r--package/system/zram-swap/files/zram.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/system/zram-swap/files/zram.init b/package/system/zram-swap/files/zram.init
index 431e47c8f9..17483c8fbc 100644
--- a/package/system/zram-swap/files/zram.init
+++ b/package/system/zram-swap/files/zram.init
@@ -75,13 +75,13 @@ list_cpu_idx()
if [ "$(mount | grep /dev/zram0)" ]; then
local line i=1
# Hot-add new ZRAM device (if necessary)
- if [ ! -b /dev/zram1 ]; then
+ if [ ! -b /dev/zram1 ]; then
cat /sys/class/zram-control/hot_add
fi
else
local line i=0
fi
-
+
while read line; do {
case "$line" in
[Pp]rocessor*)