mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
392 B

  1. #!/bin/sh
  2. for x in cancel lp lpq lpr lprm lpstat; do
  3. echo "$0: Re-creating /usr/bin/$x -> ${x}_@printer@ ..."
  4. echo -e "#!/bin/sh\nexec -a $x ${x}_@printer@ \"\$@\"" > /usr/bin/$x
  5. chmod +x /usr/bin/$x
  6. done
  7. for x in lpc; do
  8. echo "$0: Re-creating /usr/sbin/$x -> ${x}_@printer@ ..."
  9. echo -e "#!/bin/sh\nexec -a $x ${x}_@printer@ \"\$@\"" > /usr/sbin/$x
  10. chmod +x /usr/sbin/$x
  11. done
  12. exit 0