From 243aa104d83799163cb11cfbf310112cbcb59e9c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 15 Feb 2015 19:14:05 +0100 Subject: [PATCH] change order --- modules/debian-org/templates/rc.local.erb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/debian-org/templates/rc.local.erb b/modules/debian-org/templates/rc.local.erb index b6016e7e6..7ccbf7616 100755 --- a/modules/debian-org/templates/rc.local.erb +++ b/modules/debian-org/templates/rc.local.erb @@ -4,7 +4,11 @@ ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ## - +<%- if hostname == "zani" then -%> + if [ -n "$(awk '$4 == "dasdb1" && $3 == "249999" {print}' /proc/partitions)" ]; then + mkswap /dev/dasdb1 && swapon /dev/dasdb1 + fi +<%- end -%> if [ -e /proc/sys/kernel/modules_disabled ]; then ( sleep 60; echo 1 > /proc/sys/kernel/modules_disabled || true @@ -12,8 +16,3 @@ if [ -e /proc/sys/kernel/modules_disabled ]; then fi touch /var/run/reboot-lock -<%- if hostname == "zani" then -%> - if [ -n "$(awk '$4 == "dasdb1" && $3 == "249999" {print}' /proc/partitions)" ]; then - mkswap /dev/dasdb1 && swapon /dev/dasdb1 - fi -<%- end -%> -- 2.20.1