network: minor setup-ip fix
Don't exit with non-zero exit code just because custom hook isn't installed
This commit is contained in:
parent
be0e8a250f
commit
8afc07c513
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user