As I don't use
sysutils/toad, I built a test system with it to learn how to provision it.
- On installation, if /etc/hotplug/ is empty (as in a default OS install), the sample scripts will be installed.
- The toad script is called by hotplugd, upon device attachment, or by the toadd daemon. The toadd daemon is needed to signal optical device media changes, as hotplugd only executes scripts on device attach/detach.
Both d-bus (the messagebus system-wide daemon) and the consolekit session daemon must be running. In my test, I followed the instructions in /usr/local/share/doc/pkg-readmes for both, to ensure that the session d-bus daemon was launched, and that the consolekit daemon started the window manager.
Upon insertion of a device, the mount completed automatically to mount point /run/media/<user>/<device>, in this case, /run/media/test/cd0, as the user was "test" and I tested toadd with optical media changes.
/etc/rc.conf.local:
Code:
hotplugd_flags=
pkg_scripts=messagebus toadd
sshd_flags=NO
xdm_flags=
/home/test/.xsession
Code:
if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
eval `/usr/local/bin/dbus-launch --sh-syntax --exit-with-session`
fi
/usr/local/bin/ck-launch-session /usr/local/bin/startfluxbox