* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / printing / lprng / parse-config
blobf48259435d3cbc1989b54ab1e38ad838a1716a9d
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
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
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
20         fi
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