mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
util-linux: set swapfile with suggested permissions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
39b7eb8de6
commit
a8ba00971a
@ -38,6 +38,7 @@ fi
|
||||
echo "creating Swapfile ..."
|
||||
mkdir -p `dirname $SWAPFILE`
|
||||
dd if=/dev/zero of=$SWAPFILE bs=1M count=$SWAPFILESIZE 2>&1 > /dev/null
|
||||
chmod 0600 $SWAPFILE 2>&1 > /dev/null
|
||||
mkswap $SWAPFILE 2>&1 > /dev/null
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user