summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/samba_mdns26
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/samba_mdns b/etc/samba_mdns
new file mode 100644
index 00000000..66b13af7
--- /dev/null
+++ b/etc/samba_mdns
@@ -0,0 +1,26 @@
+#!/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"
o.causal.agency/2024-06-08/lens?id=ea07b068de5fdcda1a3c6814638f71d74a1578cd&follow=1'>Add first roll of film from June 8June McEnroe 2024-06-10Cope with not having an EXIF infoJune McEnroe 2024-06-10Resize using target pixel counts for consistencyJune McEnroe This will resize film scans to about the same size as for the digital photos. 2024-06-10Add The Girl Who Was Convinced...June McEnroe Not much there. The illustrations are very nice though. 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe