projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd6f2c
)
simple swap partition adder
author
Chris Koeritz
<fred@gruntose.com>
Fri, 9 Jun 2017 18:05:07 +0000
(18:05 +0000)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 9 Jun 2017 18:05:07 +0000
(18:05 +0000)
creates simple 1gig swap partition that is enabled right away. not sure if this needs to be done every boot or not.
scripts/system/add_swap_mount.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/scripts/system/add_swap_mount.sh
b/scripts/system/add_swap_mount.sh
new file mode 100644
(file)
index 0000000..
64547bd
--- /dev/null
+++ b/
scripts/system/add_swap_mount.sh
@@ -0,0
+1,14
@@
+#!/bin/bash
+
+#hmmm: should check at each step if it worked.
+#hmmm: should be able to add a new swap drive if desired.
+
+
+/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
+
+/sbin/mkswap /var/swap.1
+
+/sbin/swapon /var/swap.1
+
+free
+