more zani swap messing
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Feb 2015 18:16:10 +0000 (19:16 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Feb 2015 18:16:10 +0000 (19:16 +0100)
modules/debian-org/templates/rc.local.erb

index 7ccbf76..68a9503 100755 (executable)
@@ -6,7 +6,10 @@
 ##
 <%- if hostname == "zani" then -%>
   if [ -n "$(awk '$4 == "dasdb1" && $3 == "249999" {print}' /proc/partitions)" ]; then
-    mkswap /dev/dasdb1 && swapon /dev/dasdb1
+    mkswap /dev/dasdb1 && swapon -p 30 /dev/dasdb1
+  fi
+  if [ -n "$(awk '$4 == "dasdc1" && $3 == "249999" {print}' /proc/partitions)" ]; then
+    mkswap /dev/dasdc1 && swapon -p 30 /dev/dasdc1
   fi
 <%- end -%>
 if [ -e /proc/sys/kernel/modules_disabled ]; then