Added /etc/profile.d/msm.sh support.

This commit is contained in:
Marcus Whybrow 2012-07-18 04:30:31 +01:00
parent b8d2fc3e4a
commit 2554b67d52
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,12 @@
# Source, if it exists, the msm profile.d script
if [ -f "/etc/profile.d/msm.sh" ]; then
source "/etc/profile.d/msm.sh"
fi
### Utility Functions ### Utility Functions
MSM="/etc/init.d/msm" MSM="${MSM_SCRIPT:-/etc/init.d/msm}"
# Loads variables # Loads variables
__init() { __init() {

View File

@ -18,7 +18,10 @@
# this script. # this script.
### The configuration file # Source, if it exists, the msm profile.d script
if [ -f "/etc/profile.d/msm.sh" ]; then
source "/etc/profile.d/msm.sh"
fi
# Get the MSM_CONF environment variable or use the default location # Get the MSM_CONF environment variable or use the default location
CONF="${MSM_CONF:-/etc/msm.conf}" CONF="${MSM_CONF:-/etc/msm.conf}"