From 864482d6726ed021b4b421e1c94e1dad77134408 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Wed, 2 Mar 2011 21:03:53 +0100 Subject: [PATCH] Add ifup@.service for handling hotplugged interfaces from udev. Closes: #610871 Thanks to Michael Biebl for the implementation --- debian/changelog | 2 ++ debian/ifup@.service | 8 ++++++++ debian/rules | 1 + 3 files changed, 11 insertions(+) create mode 100644 debian/ifup@.service diff --git a/debian/changelog b/debian/changelog index ece8096d..4ebc1507 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ systemd (19-1) UNRELEASED; urgency=low * New upstream release * Add systemd-tmpfiles to systemd package. + * Add ifup@.service for handling hotplugged interfaces from + udev. Closes: #610871 -- Tollef Fog Heen Thu, 17 Feb 2011 07:36:22 +0100 diff --git a/debian/ifup@.service b/debian/ifup@.service new file mode 100644 index 00000000..4d5cc8cf --- /dev/null +++ b/debian/ifup@.service @@ -0,0 +1,8 @@ +[Unit] +Description=Start ifup for %I +After=local-fs.target + +[Service] +ExecStart=/sbin/ifup --allow=hotplug %I +ExecStop=/sbin/ifdown %I +RemainAfterExit=true diff --git a/debian/rules b/debian/rules index c618aea6..45296d9b 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,7 @@ override_dh_install: rm debian/tmp/lib/systemd/system/sysinit.target.wants/systemd-vconsole-setup.service dh_install -O--parallel --fail-missing dh_install -plibpam-systemd debian/pam-configs /usr/share + dh_install debian/ifup@.service /lib/systemd/system %: dh $@ --parallel --with autoreconf -- 2.39.5