X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_swap_mount.sh;h=f20c5cb6c0bb2f96d11337f902645cf9f3f429bc;hb=328a5c53f1329b16ad86f7bcdd8de3d843637419;hp=200cb365095decb42ec8f4b4ed4ff1b4e3966954;hpb=c8527998bb0cfdbb0244bd919b017fd8772155b2;p=feisty_meow.git diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index 200cb365..f20c5cb6 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -1,6 +1,8 @@ #!/bin/bash -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +# 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" #hmmm: should be able to add a new swap drive if desired.