diff options
Diffstat (limited to 'etc/init.d/vyatta-config-reboot-params')
-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 |