more quoting
[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
8 if [ -e /proc/sys/kernel/modules_disabled ]; then
9         ( sleep 60;
10           echo 1 > /proc/sys/kernel/modules_disabled || true
11         ) & disown
12 fi
13
14 touch /var/run/reboot-lock
15 <%- if hostname == "zani" then -%>
16   if [ -n "$(awk '$4 == \"dasdb1\" && $3 == \"249999\" {print}' /proc/partitions)" ]; then
17     mkswap /dev/dasdb1 && swapon /dev/dasdb1
18   fi
19 <%- end -%>