View | Details | Raw Unified | Return to bug 846361
Collapse All | Expand All

(-)a/scripts/ifup (-3 / +11 lines)
Lines 297-302 esac Link Here
297
######################################################################
297
######################################################################
298
# Check how to handle arguments and redirect to systemd when needed
298
# Check how to handle arguments and redirect to systemd when needed
299
#
299
#
300
SYSTEMD_REDIRECT=yes
301
case $INTERFACETYPE in
302
	lo|modem|dsl|ppp)
303
		SYSTEMD_REDIRECT=no
304
	;;
305
esac
306
if test "$PPID" -eq 1 -o "$DHCP" = "yes" -o "$CONTROL_IFPLUGD" = "yes" ; then
307
	SYSTEMD_REDIRECT=no
308
fi
300
case $SCRIPTNAME in
309
case $SCRIPTNAME in
301
ifup)
310
ifup)
302
	case "$STARTMODE" in
311
	case "$STARTMODE" in
Lines 308-319 ifup) Link Here
308
	;;
317
	;;
309
	esac
318
	esac
310
319
311
	if test $PPID -ne 1 -a "$INTERFACE" != "lo" -a "$DHCP" != yes -a "$CONTROL_IFPLUGD" != no ; then
320
	if test "$SYSTEMD_REDIRECT" = "yes" ; then
312
		exec systemctl start "network@${INTERFACE}.service"
321
		exec systemctl start "network@${INTERFACE}.service"
313
	fi
322
	fi
314
;;
323
;;
315
ifdown)
324
ifdown)
316
	if test $PPID -ne 1 -a "$INTERFACE" != "lo" -a "$DHCP" != yes -a "$CONTROL_IFPLUGD" != no ; then
325
	if test "$SYSTEMD_REDIRECT" = "yes" ; then
317
		exec systemctl stop "network@${INTERFACE}.service"
326
		exec systemctl stop "network@${INTERFACE}.service"
318
	fi
327
	fi
319
328
320
- 

Return to bug 846361