Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | echo "Running first-boot script" | ||||
3 | FLAG="first-boot.sh" | ||||
4 | echo "First boot run" > ${FLAG} | ||||
5 | echo "$vm_name" >> ${FLAG} | ||||
6 | touch /var/lib/cloud/instance/payload/launch-params | ||||
7 | chmod 644 /var/lib/cloud/instance/payload/launch-params | ||||
8 | #for i in $(ls /sys/class/net); do | ||||
9 | # echo "Restart $i" >> ${FLAG} | ||||
10 | # ifdown ${i} | ||||
11 | # ifup ${i} | ||||
12 | #done |