diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-09 20:45:15 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-09 20:45:15 +0200 |
commit | 00f95c93b6c3aca25d5f4ba0e29b4f8db954952c (patch) | |
tree | c2e617c251498dc30a3467c51b3ff7a9651283d1 /src/init/vyos-config | |
parent | 63256e1b57153762d1d5028fc0bbb8f373ce1433 (diff) | |
download | vyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.tar.gz vyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.zip |
T3355: import startup scripts from vyatta-cfg repo for vyos-router
Diffstat (limited to 'src/init/vyos-config')
-rwxr-xr-x | src/init/vyos-config | 16 |
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 |