core-agent-linux/vm-systemd/misc-post.sh
Marek Marczykowski-Górecki 8bb152f76e
init: fix issues found by shellcheck in init scripts
Most of them are missing quotes, `` -> $(), and -o/-a usage in
conditions. Also add few directives disabling checks where were too
verbose.
2017-09-30 04:49:21 +02:00

22 lines
572 B
Bash
Executable File

#!/bin/sh
# Source Qubes library.
. /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
INTERFACE=eth0 /usr/lib/qubes/setup-ip
if [ -x /rw/config/rc.local ] ; then
/rw/config/rc.local
fi