projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'dev' of feistymeow.org:feisty_meow into dev
[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 6dacb7707c715bdf97590726280bb5540bb036be..2577f44ae4f653164dbd109d4e3449d6b75c417f 100644
(file)
--- a/
scripts/system/add_swap_mount.sh
+++ b/
scripts/system/add_swap_mount.sh
@@
-8,17
+8,17
@@
source "$WORKDIR/../core/launch_feisty_meow.sh"
#hmmm: why all the hard-coded paths below?
#hmmm: why all the hard-coded paths below?
-/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=
1024
-test_or_
fail
"creating swap file"
+/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=
2048
+test_or_
die
"creating swap file"
/bin/chmod 600 /var/swap.1
/bin/chmod 600 /var/swap.1
-test_or_
fail
"setting swap file permissions"
+test_or_
die
"setting swap file permissions"
/sbin/mkswap /var/swap.1
/sbin/mkswap /var/swap.1
-test_or_
fail
"formatting swap file as swap partition"
+test_or_
die
"formatting swap file as swap partition"
/sbin/swapon /var/swap.1
/sbin/swapon /var/swap.1
-test_or_
fail
"enabling new swap partition"
+test_or_
die
"enabling new swap partition"
free
free