X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_swap_mount.sh;h=608ffc5c3306cef0a4f241f934a784e4f948a7c2;hb=114c4d0b2dcaebe6bab3a24ad07483c5bacc7ece;hp=f1c019ea51389a355deaa22793d32755a871663c;hpb=118398d89faf1a6261b13a4c31ddaac55c92cd3c;p=feisty_meow.git diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index f1c019ea..608ffc5c 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -2,7 +2,8 @@ # auto-find the scripts, since we might want to run this as sudo. export WORKDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory. -source "$WORKDIR/../core/launch_feisty_meow.sh" +export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )" +source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh" if [[ $EUID != 0 ]]; then echo "This script must be run as root or sudo." @@ -16,12 +17,13 @@ SWAP_SIZE="$1"; shift if [ "$SWAP_INSTANCE" == "--help" ]; then echo "\ +$(basename $0): This script will add a swap partition for Linux that uses hard drive space for swap memory. This increases the amount of available memory on RAM constrained systems. It accepts two parameters: (1) the instance of the swap file, which should be a small number not already used for a swap partition, and (2) the size of the swap file in megabytes." - exit 1 + exit 0 fi # if the swap instance variable is already set, then we'll use it.