mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-16 09:50:33 +01:00
Create /etc/iproute2/rt_tables if it doesn't exist
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
3e52a6c005
commit
0855bc4187
@ -1553,6 +1553,15 @@ sub start_providers() {
|
|||||||
|
|
||||||
unless ( $config{KEEP_RT_TABLES} ) {
|
unless ( $config{KEEP_RT_TABLES} ) {
|
||||||
emit( "\n#\n# Update the routing table database\n#",
|
emit( "\n#\n# Update the routing table database\n#",
|
||||||
|
'if ! [ -d /etc/iproute2 ] ; then',
|
||||||
|
' mkdir /etc/iproute2 2> /dev/null',
|
||||||
|
'fi',
|
||||||
|
'',
|
||||||
|
'if ! [ -f /etc/iproute2/rt_tables ]; then',
|
||||||
|
' cp /usr/share/iproute2/rt_tables /etc/iproute2/ 2> /dev/null',
|
||||||
|
' chmod 644 /etc/iproute2/rt_tables 2> /dev/null',
|
||||||
|
'fi',
|
||||||
|
'',
|
||||||
'if [ -w /etc/iproute2/rt_tables ]; then',
|
'if [ -w /etc/iproute2/rt_tables ]; then',
|
||||||
' cat > /etc/iproute2/rt_tables <<EOF' );
|
' cat > /etc/iproute2/rt_tables <<EOF' );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user