From 39e07b10127a1ac71a94040734f5e2c300fc916c Mon Sep 17 00:00:00 2001 From: gau1991 Date: Fri, 26 Sep 2014 19:23:47 +0530 Subject: [PATCH] Improced Code --- src/lib/ee_lib_create_swap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ee_lib_create_swap.sh b/src/lib/ee_lib_create_swap.sh index 84c7c5e4..37cae5de 100644 --- a/src/lib/ee_lib_create_swap.sh +++ b/src/lib/ee_lib_create_swap.sh @@ -6,15 +6,15 @@ function ee_lib_create_swap() # Swap Parameters: # Location: /swapfile # Block Size: 1024 - dd if=/dev/zero of=/swapfile bs=1024 count=1024k \ + dd if=/dev/zero of=/swapfile bs=1024 count=1024k &>> $EE_COMMAND_LOG \ || ee_lib_error "Unable to generate /swapfile, exit status = " $? # Create it as a Swap - mkswap /swapfile \ + mkswap /swapfile &>> $EE_COMMAND_LOG \ || ee_lib_error "Unable to create swapfile, exit status = " $? # On the Swap - swapon /swapfile \ + swapon /swapfile &>> $EE_COMMAND_LOG \ || ee_lib_error "Unable to on Swap, exit status = " $? # Add entry into /etc/fstab