[OpenWrt-Devel] [PATCH] zram-swap: set a high priority for the swap

Bastian Bittorf bittorf at bluebottle.com
Wed May 27 10:09:34 EDT 2015


* Juan Orti Alcaine <j.orti.alcaine at gmail.com> [26.05.2015 07:59]:
> -		swapon "$zram_dev"
> +		swapon -p 100 "$zram_dev"

please use at least:

swapon -p X $dev || swapon $dev

so it can work even without '-p' option,
which is optional in busybox.

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list