#!/bin/sh
# In case we couldn't start earlier because the necessary interface wasn't up,
# try and start again now. LP: #358298
set -e

# ... but, first of all, let's check whether cntlm is enabled in this runlevel
# LP: #733537
level=`runlevel | cut -d" " -f2`
if [ -e /etc/rc${level}.d/S??cntlm ]; then
	invoke-rc.d --quiet cntlm start >/dev/null 2>&1 || true
fi
