Skip to content
Permalink
Browse files

Mantis 0001882: Add 'source-directory interfaces.d' to /etc/network/i…

…nterfaces to include additional interface stanzas.

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information...
votdev committed Jan 27, 2018
1 parent fbe3159 commit 1b0df8eea4a4656d3f27749566afe2ae690033a2
@@ -1,6 +1,7 @@
openmediavault (4.0.18-1) stable; urgency=low

*
* Mantis 0001882: Add 'source-directory interfaces.d' to
/etc/network/interfaces to include additional interface stanzas.

-- Volker Theile <volker.theile@openmediavault.org> Mon, 22 Jan 2018 17:34:27 +0100

@@ -0,0 +1,34 @@
#!/bin/sh
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2018 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# OpenMediaVault is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.

# Documentation/Howto:
# https://manpages.debian.org/stretch/ifupdown/interfaces.5.en.html

set -e

OMV_INTERFACES_CONFIG=${OMV_INTERFACES_CONFIG:-"/etc/network/interfaces"}
OMV_INTERFACES_SOURCE_DIRECTORY=${OMV_INTERFACES_SOURCE_DIRECTORY:-"interfaces.d"}

cat <<EOF >> "${OMV_INTERFACES_CONFIG}"
# Include additional interface stanzas.
source-directory ${OMV_INTERFACES_SOURCE_DIRECTORY}
EOF

5 comments on commit 1b0df8e

@subzero79

This comment has been minimized.

Copy link
Contributor

subzero79 replied Feb 2, 2018

Is the older custom interfaces directory being removed then ?

@votdev

This comment has been minimized.

Copy link
Collaborator Author

votdev replied Feb 2, 2018

Which 'older' directory do you mean?

@subzero79

This comment has been minimized.

Copy link
Contributor

subzero79 replied Feb 2, 2018

@votdev

This comment has been minimized.

Copy link
Collaborator Author

votdev replied Feb 2, 2018

Indeed, this is obsolete now.

@mazzomaz

This comment has been minimized.

Copy link

mazzomaz replied Jul 30, 2018

Hmmm ... The "obsolete way" ist the only one working for me. I just wrote a blog-post about this: https://call-a-tux.de/openmediavault-ip-alias/ (it's in German - hopefully it's okay? )

Using OMV Version 4.1.9

Please sign in to comment.
You can’t perform that action at this time.