summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorUnicronNL <kim.sidney@gmail.com>2018-10-21 13:09:43 +0200
committerUnicronNL <kim.sidney@gmail.com>2018-10-21 13:09:43 +0200
commit512553a3e388b546b7792e627be99c089f62ad9a (patch)
tree4e4f7b9e77696376b7a36d0f8b00cd5232280ea7 /scripts
parent8380177fdcf045a9a9fcca0cb9233cf9e9cd4eb0 (diff)
downloadvyatta-cfg-512553a3e388b546b7792e627be99c089f62ad9a.tar.gz
vyatta-cfg-512553a3e388b546b7792e627be99c089f62ad9a.zip
Move systemd mods to /lib directory
Remove redundant my_commit check Do not show output on serial-getty (double output issue)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init/vyos-config14
1 files changed, 6 insertions, 8 deletions
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