[ "$FREETZ_ADD_REGEXT_GUI" == "y" ] || return 0 echo1 "adding GUI switch to set reg_from_outside" SEARCHSTR='-name fon_config_End.[f|h|j]* -o -name fon_config.frm -o -name fon_config_IPPhone_1.[j|h]*' isFreetzType 7240 7270 7390 && SEARCHSTR="$SEARCHSTR"' -o -name fon1IPPhone*' for file_n in $(find ${FILESYSTEM_MOD_DIR}/usr/www/ -type f \( $SEARCHSTR \) -print); do case $(basename "$file_n") in fon_config_End.frm) modsed '/id="uiPostIPPhoneExtNumber"/ a' "$file_n" ;; fon_config_End.js) modsed '/jslEnable("uiPostIPPhoneExtNumber")/ ajslCopyValue( "uiPostIPPhoneExtRegFromOutside", "uiIPPhoneExtRegFromOutside"); jslEnable("uiPostIPPhoneExtRegFromOutside");' "$file_n" ;; fon_config_End.html) modsed '/id="uiShowOutgoingMsn"/ i if eq "$var:TechType" "IPPHONE" ` \n