#!/bin/bash # include modpatch function . ${include_modpatch} for FILE in "menus/menu2_dect.inc" "home/menu2_dect.html"; do echo2 " -- Removing /usr/www/${HTML}/de/$FILE" rm -rf "$1"/usr/www/${HTML}/de/$FILE done #echo "-- removing 'dect-Zubehoer menue eintrys' ..." echo2 " -- removing dect:" echo2 " /usr/www/${HTML}/de/menus/menu2_konfig.html" #the following removes work on all versions #sed -i -e "s///" "$1"/usr/www/${HTML}/de/home/sitemap.html #sed -i -e "s/'' '1'/'0' '1'/" "$1"/usr/www/${HTML}/de/home/sitemap.html #sed -i -e "//d" "$1"/usr/www/${HTML}/de/home/sitemap.html #sed -i -e "/'usb'/d" -e "/'dect'/d" -e "/'nas'/d" -e "/'software'/d" "$1"/usr/www/${HTML}/de/home/sitemap.html #sed -i -e "/'usb'/d" -e "/'dect'/d" -e "/'nas'/d" -e "/'software'/d" "$1"/usr/www/${HTML}/de/home/home.html #sed -i -e "/'usb'/d" -e "/'dect'/d" -e "/'nas'/d" -e "/'software'/d" "$1"/usr/www/${HTML}/de/home/menus/menu2_homehome.html sed -i -e "s/'' '1'/'0' '1'/" "$1"/usr/www/${HTML}/de/enhsettings/enhsettings.js sed -i -e "//d" -e "//d"-e "//d" "$1"/usr/www/${HTML}/de/enhsettings/enhsettings.js sed -i -e "/--- DECT ---/,/END DECT/d" "$1"/usr/www/${HTML}/de/home/home.js sed -i -e "/--- USBHOST ---/,/END USBHOST/d" "$1"/usr/www/${HTML}/de/home/home.js sed -i -e "/LeuchtetUSBZubehoer/d" "$1"/usr/www/${HTML}/de/home/home.js sed -i -e "/var g_wd_data;/,/Online Zhler href Ziel/d" "$1"/usr/www/${HTML}/de/home/home.js exit 0