mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 22:47:03 +01:00
change on-disk swap size to 3072 MB
fix:#3221
This commit is contained in:
parent
09335f1e40
commit
264ee95ae4
1 changed files with 3 additions and 3 deletions
|
@ -1462,7 +1462,7 @@ if [ "$1" = "link" ]; then
|
|||
>&2 echo "# - linking temp into /mnt/hdd"
|
||||
rm /mnt/hdd/temp 2>/dev/null
|
||||
ln -s /mnt/temp /mnt/hdd/temp
|
||||
chown -R bitcoin:bitcoin /mnt/temp
|
||||
chown -R bitcoin:bitcoin
|
||||
|
||||
>&2 echo "# - creating snapshots folder"
|
||||
mkdir -p /mnt/hdd/snapshots
|
||||
|
@ -1553,10 +1553,10 @@ if [ "$1" = "swap" ]; then
|
|||
|
||||
fi
|
||||
sed -i "s/^CONF_SWAPSIZE=/#CONF_SWAPSIZE=/g" /etc/dphys-swapfile
|
||||
sed -i "s/^#CONF_MAXSWAP=.*/CONF_MAXSWAP=4096/g" /etc/dphys-swapfile
|
||||
sed -i "s/^#CONF_MAXSWAP=.*/CONF_MAXSWAP=3072/g" /etc/dphys-swapfile
|
||||
|
||||
>&2 echo "# Creating SWAP file .."
|
||||
dd if=/dev/zero of=$externalSwapPath count=4096 bs=1MiB 1>/dev/null
|
||||
dd if=/dev/zero of=$externalSwapPath count=3072 bs=1MiB 1>/dev/null
|
||||
chmod 0600 $externalSwapPath 1>/dev/null
|
||||
|
||||
>&2 echo "# Activating new SWAP"
|
||||
|
|
Loading…
Add table
Reference in a new issue