summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-13 17:15:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-13 17:15:38 -0700
commit2e368aaca62ca05330d613500772fe8d6aa11032 (patch)
treea522ca88236d4380cf1837f7b3c23f771c844347 /scripts/rl-system.init
parente7d2b737df1f6194af2c652923647dd57280d2df (diff)
downloadvyatta-cfg-quagga-2e368aaca62ca05330d613500772fe8d6aa11032.tar.gz
vyatta-cfg-quagga-2e368aaca62ca05330d613500772fe8d6aa11032.zip
Move sysctl configuration to /etc/vyatta-sysctl.conf
Change settings and move sysctl values to separate file /etc/vyatta-sysctl.conf. This allows for user/support to adjust configuration without changing the rl-system.init script.
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index 5b81a4fd..a3a49aa3 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -78,21 +78,6 @@ add_new_serial_if () {
fi
}
-proc_flags ()
-{
- # reset_promiscous_arp_response
- echo 1 > /proc/sys/net/ipv4/conf/default/arp_filter
- # set_ip_forwarding
- echo 1 > /proc/sys/net/ipv4/ip_forward
-
- # if a primary address is removed from an interface promote and
- # secondary available
- echo 1 > /proc/sys/net/ipv4/conf/all/promote_secondaries
-
- # set maximum rmem_max to accomodate netlink buffers
- echo 1048576 > /proc/sys/net/core/rmem_max
-}
-
## Update the version information
update_version_info () {
if [ -f ${vyatta_sysconfdir}/version.master ]; then
@@ -157,6 +142,8 @@ start () {
log_failure_msg "can\'t set reboot on panic"
add_new_serial_if || \
log_failure_msg "can\'t add serial interfaces"
+ sysctl -q -p /etc/vyatta-sysctl.conf ||
+ log_failure_msg "can\'t configure kernel settings"
update_version_info
clear_apt_config
add_snmp_stats_module