From 512553a3e388b546b7792e627be99c089f62ad9a Mon Sep 17 00:00:00 2001 From: UnicronNL Date: Sun, 21 Oct 2018 13:09:43 +0200 Subject: Move systemd mods to /lib directory Remove redundant my_commit check Do not show output on serial-getty (double output issue) --- scripts/init/vyos-config | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'scripts') diff --git a/scripts/init/vyos-config b/scripts/init/vyos-config index c3b826f..3564270 100755 --- a/scripts/init/vyos-config +++ b/scripts/init/vyos-config @@ -1,9 +1,5 @@ #!/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 @@ -11,8 +7,10 @@ done status=$(cat /tmp/vyos-config-status) -if [ $status -ne 0 ]; then - echo "Configuration error" -else - echo "Configuration success" +if [ -z "$1" ]; then + if [ $status -ne 0 ]; then + echo "Configuration error" + else + echo "Configuration success" + fi fi -- cgit v1.2.3