summaryrefslogtreecommitdiff
path: root/scripts/init/vyos-config
blob: c3b826f62e0c36216dd0db1cdd38d98d290abb70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

while ps -ef | grep my_commit | grep -q -v grep; do
    sleep 1
done

while [ ! -f /tmp/vyos-config-status ]
do
  sleep 1
done

status=$(cat /tmp/vyos-config-status)

if [ $status -ne 0 ]; then
  echo "Configuration error"
else
  echo "Configuration success"
fi