projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune
[feisty_meow.git]
/
scripts
/
system
/
add_swap_mount.sh
diff --git
a/scripts/system/add_swap_mount.sh
b/scripts/system/add_swap_mount.sh
index 200cb365095decb42ec8f4b4ed4ff1b4e3966954..f20c5cb6c0bb2f96d11337f902645cf9f3f429bc 100644
(file)
--- a/
scripts/system/add_swap_mount.sh
+++ b/
scripts/system/add_swap_mount.sh
@@
-1,6
+1,8
@@
#!/bin/bash
#!/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.
#hmmm: should be able to add a new swap drive if desired.