From 20d97a33eb6ac3a5432d4305561f95a1070db278 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 13 Dec 2011 02:34:40 +0700 Subject: Bug 7672: Don't execute check-params-on-reboot.d if config file does not exist. --- etc/init.d/vyatta-config-reboot-params | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3