diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-12-13 02:34:40 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2011-12-13 02:34:40 +0700 |
commit | 20d97a33eb6ac3a5432d4305561f95a1070db278 (patch) | |
tree | 4113e0e80a227b1d1f7cdab914f2653fd183d3a7 /etc | |
parent | b4bae46e47eddfeb2a20c6995257710873a79cf9 (diff) | |
download | vyatta-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-x | etc/init.d/vyatta-config-reboot-params | 5 |
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 |