summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2011-04-18 18:00:48 -0700
committerMohit Mehta <mohit@vyatta.com>2011-04-18 18:00:48 -0700
commit4d5862053ef2f99d09507b2e9b702aca1229099a (patch)
treea3be28fccf256210728f675c0f366fdfc6eebcfa /debian
parent2b7d3fef5077dbc28e39ddb6a267fe6ddeb5813b (diff)
downloadvyatta-cfg-system-4d5862053ef2f99d09507b2e9b702aca1229099a.tar.gz
vyatta-cfg-system-4d5862053ef2f99d09507b2e9b702aca1229099a.zip
* run start-up script vyatta-config-reboot-params very early in boot process
This script executes scripts lying in the following directory: /opt/vyatta/bin/sudo-users/check-params-on-reboot.d Scripts in check-params-on-reboot.d are intended for parameters that require a reboot to take effect after they are set/changed. Because of the reboot requirement, underlying value and related config paramter value can become out-of-sync in couple of cases: 1. change parameter value, don't save config, reboot. Underlying value is different than the value in config file. 2. install new image; when new image boots, underlying value is the default Vyatta shipped value not the value in config file. More info: http://bugzilla.vyatta.com/show_bug.cgi?id=6915#c1 This check-in also adds ipv6_disable_blacklist script in check-params-on-reboot.d to fix the above mentioned problem for 'system ipv6 disable' and 'system ipv6 blacklist'
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
-rw-r--r--debian/vyatta-cfg-system.postrm1
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 7daa3134..a443b891 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -232,6 +232,9 @@ do
fi
done
+# add vyatta-config-reboot-params to start at boot up
+update-rc.d vyatta-config-reboot-params defaults
+
# Local Variables:
# mode: shell-script
# sh-indentation: 4
diff --git a/debian/vyatta-cfg-system.postrm b/debian/vyatta-cfg-system.postrm
index 89d919ce..413780b5 100644
--- a/debian/vyatta-cfg-system.postrm
+++ b/debian/vyatta-cfg-system.postrm
@@ -3,6 +3,7 @@
if [ "$1" = "purge" ]; then
sed -i -e '/### BEGIN VYATTA/,/### END VYATTA/d' /etc/sudoers
sed -i -e 'g/^password/d' /etc/pam.d/password
+ update-rc.d vyatta-config-reboot-params remove
fi
# Local Variables: