working version of add swap
[feisty_meow.git] / scripts / system / add_swap_mount.sh
index 200cb365095decb42ec8f4b4ed4ff1b4e3966954..f20c5cb6c0bb2f96d11337f902645cf9f3f429bc 100644 (file)
@@ -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.