projects
/
openwrt
/
staging
/
linusw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf46a8
)
zram-swap: remove trailing whitespaces in init script
author
Samuel Casa
<samuel.casa@neratec.com>
Tue, 7 Aug 2018 08:49:22 +0000
(10:49 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Mon, 24 Sep 2018 17:08:59 +0000
(19:08 +0200)
Signed-off-by: Samuel Casa <samuel.casa@neratec.com>
[slightly reword subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/system/zram-swap/files/zram.init
patch
|
blob
|
history
diff --git
a/package/system/zram-swap/files/zram.init
b/package/system/zram-swap/files/zram.init
index 431e47c8f944192f142b09da99b3b89acefb6fb8..17483c8fbcf4a4d33410abe7190385daaafb6d02 100644
(file)
--- 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*)