summaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh
blob: 8e5a486289a9e2bd2d48d4140364e7fe26b53540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
echo "Running first-boot script"
FLAG="first-boot.sh"
echo "First boot run" > ${FLAG}
echo "$vm_name" >> ${FLAG}
touch /var/lib/cloud/instance/payload/launch-params
chmod 644 /var/lib/cloud/instance/payload/launch-params
#for i in $(ls /sys/class/net); do
#  echo "Restart $i" >> ${FLAG}
#  ifdown ${i}
#  ifup ${i}
#done