ifupdown-hotplug autopkgtest: Fix config name in interfaces.d/

It must not have a suffix in Debian. Also clean up the file after the test.
This commit is contained in:
Martin Pitt 2015-06-16 12:35:34 +02:00
parent e394c1c056
commit 775ec4755b
2 changed files with 4 additions and 1 deletions

2
debian/changelog vendored
View File

@ -36,6 +36,8 @@ systemd (220-7) UNRELEASED; urgency=medium
ones and ignoring fuzz), and builds a dsc.
- Add debian/patches/upstream-master/: These patches override the ones in
debian/patches/ for trunk builds, in order to apply.
* ifupdown-hotplug autopkgtest: Fix config name in interfaces.d/, it must
not have a suffix in Debian. Also clean up the file after the test.
-- Michael Biebl <biebl@debian.org> Fri, 12 Jun 2015 08:05:46 +0200

View File

@ -9,12 +9,13 @@ if [ -e /sys/class/net/$IFACE ]; then
exit 0
fi
cat <<EOF > /etc/network/interfaces.d/${IFACE}.cfg
cat <<EOF > /etc/network/interfaces.d/$IFACE
allow-hotplug $IFACE
iface $IFACE inet static
address 192.168.234.129
netmask 255.255.255.0
EOF
trap "rm /etc/network/interfaces.d/$IFACE" EXIT INT QUIT PIPE
# these should trigger uevents and ifup@.service
ip link add name $IFACE type veth peer name v$IFACE