summaryrefslogtreecommitdiff
path: root/src/init/vyos-config
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/vyos-config')
-rwxr-xr-xsrc/init/vyos-config16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/init/vyos-config b/src/init/vyos-config
new file mode 100755
index 000000000..356427024
--- /dev/null
+++ b/src/init/vyos-config
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+while [ ! -f /tmp/vyos-config-status ]
+do
+ sleep 1
+done
+
+status=$(cat /tmp/vyos-config-status)
+
+if [ -z "$1" ]; then
+ if [ $status -ne 0 ]; then
+ echo "Configuration error"
+ else
+ echo "Configuration success"
+ fi
+fi