core-agent-linux/vm-systemd/misc-post.sh
2019-05-16 17:32:50 +02:00

26 lines
721 B
Bash
Executable File

#!/bin/sh
# Source Qubes library.
# shellcheck source=init/functions
. /usr/lib/qubes/init/functions
/usr/lib/qubes/update-proxy-configs
if [ -n "$(ls -A /usr/local/lib 2>/dev/null)" ] || \
[ -n "$(ls -A /usr/local/lib64 2>/dev/null)" ]; then
ldconfig
fi
# Set IP address again (besides action in udev rules); this is needed by
# DispVM (to override DispVM-template IP) and in case when qubes-ip was
# called by udev before loading evtchn kernel module - in which case
# qubesdb-read fails
QUBES_MANAGED_IFACE="$(get_qubes_managed_iface)"
if [ "x$QUBES_MANAGED_IFACE" != "x" ]; then
INTERFACE="$QUBES_MANAGED_IFACE" /usr/lib/qubes/setup-ip
fi
if [ -x /rw/config/rc.local ] ; then
/rw/config/rc.local
fi