Make ShellCheck happy

This commit is contained in:
Frédéric Pierret (fepitre) 2019-05-16 18:11:50 +02:00
parent 0ce79d4895
commit b18efe3257
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -24,10 +24,11 @@ sed -r -i -e "s/^#?plugins=.*/plugins=keyfile/" /etc/NetworkManager/NetworkManag
# starting NetworkManager, otherwise it will try default DHCP configuration
# first and only after a timeout fallback to static one - introducing delay in
# network connectivity
export INTERFACE="$(get_qubes_managed_iface)"
INTERFACE="$(get_qubes_managed_iface)"
export INTERFACE
if qubesdb-read /qubes-ip >/dev/null 2>/dev/null &&
[ -e /sys/class/net/$INTERFACE ] &&
[ ! -r /etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE ]; then
[ -e "/sys/class/net/$INTERFACE" ] &&
[ ! -r "/etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE" ]; then
/usr/lib/qubes/setup-ip
fi