zram-swap: CONFIG_PROCD_ZRAM_TMPFS compatibility
authorConn O'Griofa <connogriofa@gmail.com>
Sun, 24 Jul 2016 16:18:39 +0000 (17:18 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 5 Sep 2016 05:12:00 +0000 (07:12 +0200)
commitf362dc154d776630fd0c02062b50e9f02d57476f
tree86dfa464e783f392e41a346885b4197898eb3cc8
parent911b6ca234d6d924709be27392736de9a741604d
zram-swap: CONFIG_PROCD_ZRAM_TMPFS compatibility

Enable CONFIG_PROCD_ZRAM_TMPFS compatibility via two changes to list_cpu_idx():
* detect if /tmp is being used by /dev/zram0; if yes, offset initial value by 1 to skip first zram device.
* hot-add /dev/zram1, if not already present.

Signed-off-by: Conn O'Griofa >connogriofa@gmail.com>
package/system/zram-swap/files/zram.init