Skip to content

Commit

Permalink
T671: cleanup rl-system and move components to better suited locations
Browse files Browse the repository at this point in the history
- CHanging sysctl values should be done by out generic file
  /etc/sysctl.d/30-vyatta-router.conf
- NTP config must not be restored from from /opt as it is entirely
  rendered from scratch.
  • Loading branch information
c-po committed Jan 17, 2021
1 parent 0dccb30 commit b74daed
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ sysconf_DATA += sysconf/issue
sysconf_DATA += sysconf/issue.net
sysconf_DATA += sysconf/motd.tail
sysconf_DATA += sysconf/rsyslog.conf
sysconf_DATA += sysconf/ntp.conf
sysconf_DATA += sysconf/default_ssh
sysconf_DATA += sysconf/securetty
sysconf_DATA += sysconf/vyatta-sysctl.conf
Expand Down
14 changes: 0 additions & 14 deletions scripts/rl-system.init
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ set_ipv6_params ()
return
fi

# Enable forwarding
echo 1 >/proc/sys/net/ipv6/conf/all/forwarding

# Increase route table limit
echo 262144 >/proc/sys/net/ipv6/route/max_size

Expand All @@ -144,16 +141,6 @@ set_ipv6_params ()
done
}

setup_ntp_config_file () {
template_ntp_conf=/opt/vyatta/etc/ntp.conf
if [ -e $template_ntp_conf ]; then
cp -f $template_ntp_conf /etc/ntp.conf
else
log_failure_msg "NTP template config file doesn\'t exist"
fi
}


# These are all the default security setting which are later
# overridden when configuration is read. These are the values the
# system defaults.
Expand Down Expand Up @@ -186,7 +173,6 @@ start () {
log_failure_msg "can't initialize ssh host keys"
clear_or_override_config_files || \
log_failure_msg "can\'t reset config files"
setup_ntp_config_file

add_new_serial_if || \
log_failure_msg "can\'t add serial interfaces"
Expand Down
24 changes: 0 additions & 24 deletions sysconf/ntp.conf

This file was deleted.

3 changes: 3 additions & 0 deletions sysconf/vyatta-sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ net.ipv4.conf.all.send_redirects=1
# Increase size of buffer for netlink
net.core.rmem_max=2097152

# Enable packet forwarding for IPv6
net.ipv6.conf.all.forwarding=1

# Do not forget IPv6 addresses when a link goes down
net.ipv6.conf.default.keep_addr_on_down=1
net.ipv6.conf.all.keep_addr_on_down=1
Expand Down

0 comments on commit b74daed

Please sign in to comment.