Quote:
Originally Posted by fooctrl
With latest version of script, Ubuntu is also supported (>=15.04 to <=16.04).
However, there's no support for Mint right now. Due to the reason that Mint still uses Upstart, while this script support anything that's running on Systemd.
|
It's possible to have systemd installed on mint though, so you could just run a check to see if it's running systemd.
*edit*
Just looking through the official install script, it looks like it does detect and support both upstart and systemd (this is from version 1.1.62):
Code:
detect_init_daemon()
{
INIT=$(readlink /proc/1/exe)
if [ "$INIT" == "/sbin/init" ]; then
INIT=$(/sbin/init --version)
fi
[ -z "${INIT##*upstart*}" ] && SYSTEMINITDAEMON="upstart"
[ -z "${INIT##*systemd*}" ] && SYSTEMINITDAEMON="systemd"
if [ -z "$SYSTEMINITDAEMON" ]; then
echo "ERROR: the installer script is unable to find out how to start DisplayLinkManager service automatically on your system." >&2
echo "Please set an environment variable SYSTEMINITDAEMON to 'upstart' or 'systemd' before running the installation script to force one of the options." >&2
echo "Installation terminated." >&2
exit 1
fi
}
And the install function calls a couple of different functions depending on whether systemd or upstart is used:
Code:
if [ "upstart" == "$SYSTEMINITDAEMON" ]; then
echo "Starting DLM upstart job"
add_upstart_script
add_pm_script "upstart"
start displaylink
elif [ "systemd" == "$SYSTEMINITDAEMON" ]; then
echo "Starting DLM systemd service"
add_systemd_service
add_pm_script "systemd"
systemctl start displaylink.service
fi
It just doesn't support sysvinit