summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-08-19 10:34:50 -0700
committerStephen Hemminger <shemminger@vyatta.com>2011-08-19 10:57:41 -0700
commit018b240883d623b018b2fed416d0a8b48fe7b037 (patch)
tree0444ba7cf4fa529a78887e44a0ded31447dba7db
parent206a39555bdf3193e5ac091a1c2fef37e7e53d1d (diff)
downloadvyatta-cfg-quagga-018b240883d623b018b2fed416d0a8b48fe7b037.tar.gz
vyatta-cfg-quagga-018b240883d623b018b2fed416d0a8b48fe7b037.zip
Cleanup vyatta-config-reboot-params
Split comments out of Description: text which is part of LSB info into later parts of the file.
-rwxr-xr-xetc/init.d/vyatta-config-reboot-params45
1 files changed, 19 insertions, 26 deletions
diff --git a/etc/init.d/vyatta-config-reboot-params b/etc/init.d/vyatta-config-reboot-params
index ad724b75..93afed69 100755
--- a/etc/init.d/vyatta-config-reboot-params
+++ b/etc/init.d/vyatta-config-reboot-params
@@ -2,45 +2,38 @@
### BEGIN INIT INFO
# Provides: vyatta-config-reboot-params
# Required-Start: $local_fs
-# X-Start-Before: module-init-tools
# Required-Stop:
+# X-Start-Before: module-init-tools
# Default-Start: S
# Default-Stop:
-# Short-Description: Rectify underlying values for parameters requiring reboot.
-# Description: This script runs very early in the boot process so that
-# parameters requiring a reboot get set to the same value as
-# in the config file. To show how the underlying value can
-# be different than the parameter in config file, let's take
-# the case of 'firewall conntrack-hash-size' which requires
-# a reboot after it is changed to a different value:
-# user sets conntrack-hash-size but doesn't save config; then
-# on reboot conntrack module loads with a different value of
-# conntrack-hash-size than parameter in config file. When
-# config file loads at a later stage, underlying value for
-# conntrack-hash-size gets set to parameter in config file
-# but for that to take affect another reboot is required.
-# More information about this is available at:
-# http://bugzilla.vyatta.com/show_bug.cgi?id=6915#c1
-# When run, this script executes scripts placed in
-# /opt/vyatta/bin/sudo-users/check-params-on-reboot.d where
-# scripts for different parameters requiring a reboot should
-# be placed. Scripts placed in check-params-on-reboot.d are
-# responsible for making sure that the value in the config
-# file matches the underlying value of the parameter. All
-# scripts placed in check-params-on-reboot.d are passed
-# the configuration boot file as an argument.
+# Short-Description: Change system config parameters based on Vyatta configuration
+# Description: Provide a way for changing system settings that can only
+# be changed on reboot from Vyatta configuration.
### END INIT INFO
+
+# This script runs very early in the boot process so that parameters
+# requiring a reboot get set to the same value as in the config file.
#
+# To show how the underlying value can be different than the parameter
+# in config file, let's take the case of 'firewall conntrack-hash-size'
+# which requires a reboot after it is changed to a different value: user
+# sets conntrack-hash-size but doesn't save config; then on reboot
+# conntrack module loads with a different value of conntrack-hash-size
+# than parameter in config file. When config file loads at a later
+# stage, underlying value for conntrack-hash-size gets set to parameter
+# in config file but for that to take affect another reboot is required.
: ${vyatta_env:=/etc/default/vyatta}
source $vyatta_env
-declare -x BOOTFILE=$vyatta_sysconfdir/config/config.boot
-
case "$1" in
start) ;;
stop|restart|force-reload|status) exit 0 ;;
*) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;;
esac
+declare -x BOOTFILE=$vyatta_sysconfdir/config/config.boot
+
+# 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