Files
S905L3A/setup_cups.sh
yuyx 4c8e51e836 feat: 添加一键共享所有打印机功能
新增 share_all_printers() 函数和菜单选项6,实现:
- 检查 CUPS 服务状态
- 显示所有打印机当前共享状态
- 执行 cupsctl --share-printers 启用全局共享
- 对每台打印机执行 lpadmin -p <name> -o printer-is-shared=true
- 重启 CUPS 和 Avahi 服务

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 11:55:07 +08:00

62 KiB
Executable File