hplip/hp-systray.wrapper

6 lines
178 B
Bash

#! /bin/bash
# If lpstat fails or if hp-systray is not installed or whatever, exit silently:
lpstat -h localhost -v | cut -d ' ' -f 4 | grep -q '^hp:/' && hp-systray || exit 0