#Line 1036 of /usr/sbin/wag-profiles.sh # http://www.pearltrees.com/s243a/loadprofiledata-puppylinu/id16403091 loadProfileData() { # Dougal: added "SECURE" param, increment the "-A" below PROFILE_TITLE="$1" #PROFILE_DATA=`grep -A 11 -E "TITLE[0-9]+=\"${PROFILE_TITLE}\"" /etc/WAG/profile-conf` ## Dougal: I'm not sure about the name -- maybe need to change underscores to spaces? PROFILE_FILE=$( grep -l "TITLE=\"${PROFILE_TITLE}\"" ${PROFILES_DIR}/*.conf | head -n1 ) # add failsafe, in case there is none [ "$PROFILE_FILE" ] || return # Dougal: source config file . "$PROFILE_FILE" # now assign to PROFILE_ names... assignProfileData } # end loadProfileData