View Single Post
Old 4th July 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

As I don't use sysutils/toad, I built a test system with it to learn how to provision it.
  1. On installation, if /etc/hotplug/ is empty (as in a default OS install), the sample scripts will be installed.
  2. 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
Reply With Quote