network: minor setup-ip fix

Don't exit with non-zero exit code just because custom hook isn't
installed

(cherry picked from commit 8afc07c513)
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-19 01:04:25 +02:00
parent 3d09db136b
commit 322550eb3d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -77,8 +77,12 @@ __EOF__
/usr/lib/qubes/qubes-setup-dnat-to-ns
fi
if [ "x$network" != "x" ]; then
[ -x /rw/config/qubes-ip-change-hook ] && /rw/config/qubes-ip-change-hook
if [ -x /rw/config/qubes-ip-change-hook ]; then
/rw/config/qubes-ip-change-hook
fi
# XXX: Backward compatibility
[ -x /rw/config/qubes_ip_change_hook ] && /rw/config/qubes_ip_change_hook
if [ -x /rw/config/qubes_ip_change_hook ]; then
/rw/config/qubes_ip_change_hook
fi
fi
fi