From 9cfa24c8b8032f4813f371bb1a5645c1c4dd4905 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 4 Jun 2011 02:49:50 +0200 Subject: [PATCH] proxyvm: directly display error msg beside of writing it to xenstore --- proxyvm/bin/qubes_firewall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxyvm/bin/qubes_firewall b/proxyvm/bin/qubes_firewall index 6f1cc26..2a0963d 100755 --- a/proxyvm/bin/qubes_firewall +++ b/proxyvm/bin/qubes_firewall @@ -19,6 +19,9 @@ while true; do IPTABLES_SAVE=$(/sbin/iptables-save | sed '/^\*filter/,/^COMMIT/d') OUT=`echo -e "$RULES\n$IPTABLES_SAVE" | /sbin/iptables-restore 2>&1 || :` /usr/bin/xenstore-write $XENSTORE_ERROR "$OUT" + if [ "$OUT" ]; then + DISPLAY=:0 /usr/bin/notify-send -t 3000 "Firewall loading error ($HOSTNAME)" "$OUT" || : + fi if [[ -z "$OUT" ]]; then # If OK save it for later