mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Turn pkg and cmd functions into bins to avoid PATH issues in subshells
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
echo "Enable auto-discovery of network printers"
|
||||
|
||||
if [[ ! -f /etc/systemd/resolved.conf.d/10-disable-multicast.conf ]]; then
|
||||
pkg-add avahi nss-mdns
|
||||
omarchy-pkg-add avahi nss-mdns
|
||||
|
||||
# Disable multicast dns in resolved. Avahi will provide this for better network printer discovery
|
||||
sudo mkdir -p /etc/systemd/resolved.conf.d
|
||||
@@ -10,7 +10,7 @@ if [[ ! -f /etc/systemd/resolved.conf.d/10-disable-multicast.conf ]]; then
|
||||
fi
|
||||
|
||||
if ! grep -q '^CreateRemotePrinters Yes' /etc/cups/cups-browsed.conf; then
|
||||
pkg-add cups-browsed
|
||||
omarchy-pkg-add cups-browsed
|
||||
# Enable automatically adding remote printers
|
||||
echo 'CreateRemotePrinters Yes' | sudo tee -a /etc/cups/cups-browsed.conf
|
||||
sudo systemctl enable --now cups-browsed.service
|
||||
|
||||
Reference in New Issue
Block a user