mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
busybox: enable swap optionally, disabled by default for testing
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
e17dfa53ef
commit
4af9373863
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
|
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
|
||||||
|
|
||||||
if [ $INSTALLED_MEMORY -le 500000 ]; then
|
if [ $INSTALLED_MEMORY -le 500000 -a -f $HOME/.config/swapon]; then
|
||||||
|
|
||||||
if [ ! -f $HOME/.cache/swapfile ]; then
|
if [ ! -f $HOME/.cache/swapfile ]; then
|
||||||
progress "creating swapfile"
|
progress "creating swapfile"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user