Skip to content

Commit ed43a0c

Browse files
committed
start-networking: remove hotplug (udev handling)
1 parent 3fc2153 commit ed43a0c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

ifupdown2/sbin/start-networking

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,6 @@ check_network_swap() {
7878
done < /proc/swaps
7979
}
8080

81-
ifup_hotplug () {
82-
if [ -d /sys/class/net ]
83-
then
84-
ifaces=$(for iface in $(ifquery --list --allow=hotplug 2>/dev/null)
85-
do
86-
link=${iface##:*}
87-
link=${link##.*}
88-
if [ -e "/sys/class/net/$link" ]
89-
then
90-
echo "$iface"
91-
fi
92-
done)
93-
if [ -n "$ifaces" ]
94-
then
95-
ifup $ifaces "$@" --systemd || true
96-
fi
97-
fi
98-
}
99-
10081
ifup_mgmt () {
10182
ifaces=$(ifquery --list --allow=mgmt 2>/dev/null)
10283
if [ -n "$ifaces" ]; then
@@ -128,7 +109,6 @@ start)
128109
echo ${NAME}':' "Configuring network interfaces"
129110
ifup_mgmt
130111
ifup -a $EXTRA_ARGS $exclusions $perfoptions --systemd
131-
ifup_hotplug $HOTPLUG_ARGS $EXTRA_ARGS $exclusions
132112
;;
133113
stop)
134114
if [ "$SKIP_DOWN_AT_SYSRESET" = "yes" ]; then

0 commit comments

Comments
 (0)