#!/bin/bash USRWWW="usr/www/${OEMDIR}/$html/de" #normal condition patching menues for dect if [ -d "$SR1/usr/www/${OEMDIR}" ]; then #build link files used on .56 7150 type dect menu for FILE in "dect0" "fon1dect" "fonlistdect" "foneditdect" "fonsetupdect" ; do for EXT in "frm" "html" "inc" "js" ; do DSTF="$SR1/${USRWWW}/home/${FILE}.${EXT}" rm -f "${DSTF}" touch "${DSTF}" echo2 "-> $FILE.$EXT" echo " include ../html/de/fon/$FILE.$EXT ?>" >"${DSTF}" done done PatchfileName="add_7150_dect_de" # [ -f "$P_DIR/${PatchfileName}_ut8.patch" ] && iconv --from-code=UTF-8 --to-code=ISO-8859-1 "$P_DIR/${PatchfileName}_ut8.patch" > "$P_DIR/${PatchfileName}.patch" [ -f "$P_DIR/${PatchfileName}_ut8.patch" ] || iconv --from-code=ISO-8859-1 --to-code=UTF-8 "$P_DIR/${PatchfileName}.patch" > "$P_DIR/${PatchfileName}_ut8.patch" [ "$Unicode_ut8" = "n" ] && [ "$avm_Lang" = "de" ] && modpatch "$SR1/${USRWWW}" "$P_DIR/${PatchfileName}.patch" [ "$Unicode_ut8" = "y" ] && [ "$avm_Lang" = "de" ] && modpatch "$SR1/${USRWWW}" "$P_DIR/${PatchfileName}_ut8.patch" #-------------------------------------------------------------------------------- FN="$SR1/${USRWWW}/home/fondevices.html" sed -i -e "/