mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
util-linux-ng: be more silent on boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fc1bbd76cc
commit
9f70ffbd23
@ -35,20 +35,20 @@ if [ $INSTALLED_MEMORY -le 500000 -a -f $HOME/.config/swapon ]; then
|
||||
progress "creating swapfile"
|
||||
|
||||
mkdir -p $HOME/.cache
|
||||
dd if=/dev/zero of=$HOME/.cache/swapfile bs=1024 count=524288
|
||||
mkswap $HOME/.cache/swapfile
|
||||
dd if=/dev/zero of=$HOME/.cache/swapfile bs=1024 count=524288 2>&1 > /dev/null
|
||||
mkswap $HOME/.cache/swapfile 2>&1 > /dev/null
|
||||
fi
|
||||
|
||||
progress "enable swapfile"
|
||||
swapon -p 10000 $HOME/.cache/swapfile
|
||||
|
||||
[ $INSTALLED_MEMORY -le 260000 ] \
|
||||
&& sysctl -w vm.swappiness=100 \
|
||||
|| sysctl -w vm.swappiness=60
|
||||
&& sysctl -w vm.swappiness=100 2>&1 > /dev/null \
|
||||
|| sysctl -w vm.swappiness=60 2>&1 > /dev/null
|
||||
|
||||
else
|
||||
|
||||
sysctl -w vm.swappiness=0
|
||||
sysctl -w vm.swappiness=0 2>&1 > /dev/null
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user