change order
[mirror/dsa-puppet.git] / modules / debian-org / templates / rc.local.erb
1 #!/bin/bash
2
3 ##
4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 ##
7 <%- if hostname == "zani" then -%>
8   if [ -n "$(awk '$4 == "dasdb1" && $3 == "249999" {print}' /proc/partitions)" ]; then
9     mkswap /dev/dasdb1 && swapon /dev/dasdb1
10   fi
11 <%- end -%>
12 if [ -e /proc/sys/kernel/modules_disabled ]; then
13         ( sleep 60;
14           echo 1 > /proc/sys/kernel/modules_disabled || true
15         ) & disown
16 fi
17
18 touch /var/run/reboot-lock