misc-post.sh 734 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. # Source Qubes library.
  3. # shellcheck source=init/functions
  4. . /usr/lib/qubes/init/functions
  5. /usr/lib/qubes/update-proxy-configs
  6. if [ -n "$(ls -A /usr/local/lib 2>/dev/null)" ] || \
  7. [ -n "$(ls -A /usr/local/lib64 2>/dev/null)" ]; then
  8. ldconfig
  9. fi
  10. # Set IP address again (besides action in udev rules); this is needed by
  11. # DispVM (to override DispVM-template IP) and in case when qubes-ip was
  12. # called by udev before loading evtchn kernel module - in which case
  13. # qubesdb-read fails
  14. QUBES_MANAGED_IFACE="$(get_qubes_managed_iface)"
  15. if [ "x$QUBES_MANAGED_IFACE" != "x" ]; then
  16. INTERFACE="$QUBES_MANAGED_IFACE" ACTION="add" /usr/lib/qubes/setup-ip
  17. fi
  18. if [ -x /rw/config/rc.local ] ; then
  19. /rw/config/rc.local
  20. fi