#!/bin/sh # LDAP Settings. LDAPPASSWD="`cat /etc/webint/LDAP_MASTER_PASSWD`" cat /home/system/radius/raddb/radiusd.conf | sed 's/^\t\tpassword = .*/\t\tpassword = '$LDAPPASSWD'/' >> /home/system/radius/raddb/radiusd.conf-new if [ -s /home/system/radius/raddb/radiusd.conf-new ]; then mv /home/system/radius/raddb/radiusd.conf-new /home/system/radius/raddb/radiusd.conf fi exec /usr/sbin/radiusd -f -l /var/log/radius/radius.log