[type/__interface] Fix ifupdown.d backend when stdin is empty
This commit is contained in:
parent
bd5e07b353
commit
3f3680db3a
1 changed files with 5 additions and 1 deletions
|
@ -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}" "$@"
|
||||
|
|
Loading…
Reference in a new issue