summary refs log tree commit diff
path: root/etc/samba_mdns
blob: 66b13af7d843b57b3bee95dbfa4bf8c7fa8b35a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
ef='/src/commit/www/text.causal.agency/feed.sh?id=ebacc3d0ee00212a20cb33b8f660ae73ecd5b95a&follow=1'>Move to www/text.causal.agencyJune McEnroe 2019-07-12Add new causal.agency with shotty shotsJune McEnroe 2019-07-12Use -s to infer terminal sizeJune McEnroe 2019-07-12Add DCH to shottyJune McEnroe 2019-07-12Support insert mode in shottyJune McEnroe 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe