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 From 67954d6216e66dc2908327a4c20913ac087a6737 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 13 Dec 2011 03:13:01 +0700 Subject: 0.19.145 --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 52e08277..c4325e24 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyatta-cfg-system (0.19.145) unstable; urgency=low + + * Bug 7672: Don't execute check-params-on-reboot.d if config file + + -- Daniil Baturin Tue, 13 Dec 2011 03:13:00 +0700 + vyatta-cfg-system (0.19.144) unstable; urgency=low * sysctl: increase maximum allowed socket buffer -- cgit v1.2.3