1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/lprng/parse-config
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 install_setprinter() {
14 sed "s,@printer@,$1,g" > $root/usr/sbin/setprinter_$1 \
15 < $base/package/*/lprng/setprinter.sh
16 chmod +x $root/usr/sbin/setprinter_$1
18 if [ "$SDECFG_DEFAULT_PRINTER" = "$1" ]; then
19 $root/usr/sbin/setprinter_$1
23 if [ "$SDECFG_DEFAULT_PRINTER" != "$pkg" ]; then
24 register_badfiles 'Only default printer may own this file' \
25 usr/bin/{cancel,lp,lpq,lpr,lprm,lpstat} usr/sbin/lpc