summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-26 17:06:23 -0400
committerJune McEnroe <june@causal.agency>2021-04-26 17:06:23 -0400
commite9cebc9cf401a7055b8bbad7bc93ead98381dfc1 (patch)
tree43819013db6069a97bb6cd7f8370231ef82a28a5 /etc
parentMatch space between #! and /bin/sh (diff)
downloadsrc-e9cebc9cf401a7055b8bbad7bc93ead98381dfc1.tar.gz
src-e9cebc9cf401a7055b8bbad7bc93ead98381dfc1.zip
Remove samba_mdns rc script
Newer samba package forces me to use avahi :(
Diffstat (limited to 'etc')
-rw-r--r--etc/samba_mdns26
1 files changed, 0 insertions, 26 deletions
diff --git a/etc/samba_mdns b/etc/samba_mdns
deleted file mode 100644
index 66b13af7..00000000
--- a/etc/samba_mdns
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: samba_mdns
-# REQUIRE: samba_server mdnsd
-# KEYWORD: shutdown
-
-. /etc/rc.subr
-
-name="samba_mdns"
-rcvar="samba_mdns_enable"
-
-load_rc_config $name
-
-: ${samba_mdns_enable:="NO"}
-: ${samba_mdns_name:="${hostname}"}
-: ${samba_mdns_port:="445"}
-: ${samba_mdns_text:=""}
-
-procname="/usr/local/sbin/mdnsctl"
-command="/usr/sbin/daemon"
-pidfile="/var/run/${name}.pid"
-
-publish_args="${samba_mdns_name} smb tcp ${samba_mdns_port} '${samba_mdns_text}'"
-command_args="-T mdnsctl -p ${pidfile} -- ${procname} publish ${publish_args}"
-
-run_rc_command "$1"