* Nathan Hintz <[email protected]> [14.01.2013 11:05]: > Insures zram swap is higher priority than any swap added by block-mount; > which is not the case if zram swap is restarted for any reason > (e.g., /etc/init.d/zram restart). > > Signed-off-by: Nathan Hintz <[email protected]> > > Index: package/zram-swap/files/zram.init > =================================================================== > --- package/zram-swap/files/zram.init (revision 35146) > +++ package/zram-swap/files/zram.init (working copy) > @@ -100,7 +100,7 @@ > zram_reset "$zram_dev" "enforcing defaults" > echo $(( $zram_size * 1024 * 1024 )) >"/sys/block/$( basename > $zram_dev )/disksize" > mkswap "$zram_dev" > - swapon "$zram_dev" > + swapon -p 0 "$zram_dev"
a workaround in my private repo is: # fallback to minimal busybox applet swapon -p 0 "$zram_dev" 2>/dev/null || swapon "$zram_dev" i have also successfuly run the support for multiple cpu-cores, maybe this can be merged: https://github.com/bittorf/kalua/blob/master/openwrt-addons/etc/init.d/zram bye, bastian _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
