|
|
@ -2,6 +2,9 @@ |
|
|
|
|
|
|
|
function ee_lib_create_swap() |
|
|
|
{ |
|
|
|
if [ $EE_TOTAL_RAM -le 512 ]; then |
|
|
|
if [ $EE_TOTAL_SWAP -le $EE_SWAP ];then |
|
|
|
|
|
|
|
# Use dd command to create SWAP |
|
|
|
# Swap Parameters: |
|
|
|
# Location: /swapfile |
|
|
@ -20,4 +23,6 @@ function ee_lib_create_swap() |
|
|
|
# Add entry into /etc/fstab |
|
|
|
echo "/swapfile none swap sw 0 0" >> /etc/fstab \ |
|
|
|
|| ee_lib_error "Unable to add entry into /etc/fstab, exit status = " $? |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|