aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh')
-rw-r--r--asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh b/asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh
new file mode 100644
index 0000000000..8e5a486289
--- /dev/null
+++ b/asdc-controller/src/main/resources/resource-examples/cloud-nimbus.sh
@@ -0,0 +1,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