#!/bin/bash
# -*- mode: shell-script; coding: utf-8 -*-
#
# Copyright 2008-2014 Cendio AB.
# For more information, see http://www.cendio.com
#
# action: Setting up printer port redirection
#

if [ -z "${TLPREFIX}" ]; then
    echo "Cannot work without TLPREFIX. Exiting."
else
    "${TLPREFIX}/bin/tl-while-x11" "${TLPREFIX}/libexec/tl-lp-redir" "${TLSESSIONDATA}/dev/lp0" thinlocal &
fi
