summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-12-13 02:34:40 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-12-13 02:34:40 +0700
commit20d97a33eb6ac3a5432d4305561f95a1070db278 (patch)
tree4113e0e80a227b1d1f7cdab914f2653fd183d3a7 /etc
parentb4bae46e47eddfeb2a20c6995257710873a79cf9 (diff)
downloadvyatta-cfg-system-20d97a33eb6ac3a5432d4305561f95a1070db278.tar.gz
vyatta-cfg-system-20d97a33eb6ac3a5432d4305561f95a1070db278.zip
Bug 7672: Don't execute check-params-on-reboot.d if config file
does not exist.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-config-reboot-params5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-config-reboot-params b/etc/init.d/vyatta-config-reboot-params
index 93afed69..6ce48578 100755
--- a/etc/init.d/vyatta-config-reboot-params
+++ b/etc/init.d/vyatta-config-reboot-params
@@ -34,6 +34,11 @@ esac
declare -x BOOTFILE=$vyatta_sysconfdir/config/config.boot
+# Check if config file exists, exit otherwise
+if [ ! -f $BOOTFILE ]; then
+ exit 0
+fi
+
# Execute all subordinate scripts in
# /opt/vyatta/bin/sudo-users/check-params-on-reboot.d
run-parts -a $BOOTFILE /opt/vyatta/bin/sudo-users/check-params-on-reboot.d