X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Ftemplates%2Frc.local.erb;fp=modules%2Fdebian-org%2Ftemplates%2Frc.local.erb;h=b6016e7e60eec7be5e2e12f03f6488314c0864c6;hb=6d240e987cbbabf6e66b22553ec1f1d3fc2bc3d6;hp=0000000000000000000000000000000000000000;hpb=47287f7421d22048db82e34af609b927918a70eb;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/templates/rc.local.erb b/modules/debian-org/templates/rc.local.erb new file mode 100755 index 000000000..b6016e7e6 --- /dev/null +++ b/modules/debian-org/templates/rc.local.erb @@ -0,0 +1,19 @@ +#!/bin/bash + +## +## 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 [ -e /proc/sys/kernel/modules_disabled ]; then + ( sleep 60; + echo 1 > /proc/sys/kernel/modules_disabled || true + ) & disown +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 -%>