summaryrefslogtreecommitdiff
path: root/src/init/vyos-config
blob: 35642702410c840a4381e243b16afaf18b9595ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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