Skip to content

Commit

Permalink
start-networking: remove hotplug (udev handling)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohorx committed Jun 19, 2023
1 parent 1f32d6e commit 5fca81f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ifupdown2/sbin/start-networking
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,6 @@ check_network_swap() {
done < /proc/swaps
}

ifup_hotplug () {
if [ -d /sys/class/net ]
then
ifaces=$(for iface in $(ifquery --list --allow=hotplug 2>/dev/null)
do
link=${iface##:*}
link=${link##.*}
if [ -e "/sys/class/net/$link" ]
then
echo "$iface"
fi
done)
if [ -n "$ifaces" ]
then
ifup $ifaces "$@" --systemd || true
fi
fi
}

ifup_mgmt () {
ifaces=$(ifquery --list --allow=mgmt 2>/dev/null)
if [ -n "$ifaces" ]; then
Expand Down Expand Up @@ -128,7 +109,6 @@ start)
echo ${NAME}':' "Configuring network interfaces"
ifup_mgmt
ifup -a $EXTRA_ARGS $exclusions $perfoptions --systemd
ifup_hotplug $HOTPLUG_ARGS $EXTRA_ARGS $exclusions
;;
stop)
if [ "$SKIP_DOWN_AT_SYSRESET" = "yes" ]; then
Expand Down

0 comments on commit 5fca81f

Please sign in to comment.