blob: f0820ed75e258c5f228dbf3dcdd9d7650d56a718 (
plain) (
tree)
|
|
setup_firewall () {
local LOGF="${TMPDIR}/firewall.log"
local RET
[ "$DISPLAY" = ":0" ] || return 0 # For now, to avoid conflicts, we only do this on display :0
slxfwtool "$IMGUUID" > "$LOGF" 2>&1
RET=$?
if [ "$RET" != "0" ]; then
slxlog "runvirt-firewall" "Error setting up firewall rules for lecture $IMGUUID (Exit code $RET)" "$LOGF"
fi
return 0
}
|