[type/__interface] Fix ifupdown.d backend when stdin is empty

This commit is contained in:
Dennis Camera 2020-08-26 15:41:46 +02:00
parent bd5e07b353
commit 3f3680db3a

View file

@ -102,4 +102,8 @@ then
fi
# Instantiate backend type
__interface_ifupdown.d "${__object_id}" "$@" <"${__object}/stdin"
if test -s "${__object:?}/stdin"
then
exec <"${__object:?}/stdin"
fi
__interface_ifupdown.d "${__object_id}" "$@"