f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# CDDL HEADER START
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# The contents of this file are subject to the terms of the
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# Common Development and Distribution License (the "License").
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# You may not use this file except in compliance with the License.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# See the License for the specific language governing permissions
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# and limitations under the License.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# When distributing Covered Code, include this CDDL HEADER in each
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# If applicable, add the following below this CDDL HEADER, with the
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# fields enclosed by brackets "[]" replaced with your own identifying
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# information: Portions Copyright [yyyy] [name of copyright owner]
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# CDDL HEADER END
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# Use is subject to license terms.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# This program manages the "active" print service selection.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# If called as 'print-service', it takes one of four options.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# [-s[et] service [-m]] Select the "active" print service, optionally
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# migrating basic print queue configuration.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# [-q[uery]] Display the "active" print service.
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# [-e[xport] file] Export basic print queue configuration to
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# [-i[mport] file] Import basic print queue configuration from
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# If called by any other name, it will look for a corresponding command
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# under /usr/lib/{active-service}/bin/{command} and execute that program
f169c0eae91b2ee787cf8d6dcf8edd9159d4c9e2Glenn Lagasse# with the original arguments.
print STDERR @_;
my $FH;
my $FH;
my $service;
my $EFH;
$printer{$1} = $2;
my $value = $2;