This repository has been archived on 2025-05-07. You can view files and clone it, but cannot push or open issues or pull requests.

10 lines
220 B
Bash

#/bin/bash
/usr/sbin/cupsd
while [ ! -f /var/run/cups/cupsd.pid ]; do
sleep 1
done
cupsctl --remote-admin --remote-any --share-printers
kill $(cat /var/run/cups/cupsd.pid)
echo "ServerAlias *" >> /etc/cups/cupsd.conf