Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2608 → Rev 2620

/scripts/alcasar-daemon.sh
10,6 → 10,8
conf_file="/usr/local/etc/alcasar.conf"
SSH=`grep ^SSH= $conf_file|cut -d"=" -f2` # sshd active (on/off)
SSH=${SSH:=off}
SMS=`grep ^SMS= $conf_file|cut -d"=" -f2` # SMS active (on/off)
SMS=${SMS:=off}
LDAP=`grep ^LDAP= $conf_file|cut -d"=" -f2` # ldap active (on/off)
LDAP=${LDAP:=off}
INTIF=`grep ^INTIF= $conf_file|cut -d"=" -f2` # INTIF name
45,12 → 47,11
continue
fi
elif [ $service == 'gammu-smsd' ]; then
if [ $(grep '^SMS=' $conf_file | cut -d'=' -f2-) != 'on' ]; then
if [ $SMS != "ON" ] && [ $SMS != "on" ] && [ $SMS != "On" ]; then
nb_available_srv=$((nb_available_srv-1))
continue
fi
fi
 
ServiceTest $service
done