mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-12 14:33:18 +00:00
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:
parent
e394c1c056
commit
775ec4755b
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -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
|
||||
|
||||
|
||||
3
debian/tests/ifupdown-hotplug
vendored
3
debian/tests/ifupdown-hotplug
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user