#!/bin/bash # include modpatch function . ${include_modpatch} for FILE in "menus/menu2_usb.inc" "home/menu2_usb.html"; do echo2 " -- removing /usr/www/${HTML}/${avm_Lang}/$FILE" rm -rf "$1"/usr/www/${HTML}/${avm_Lang}/$FILE done #the following removes work on all versions #remove usb item .80 ##sed -i -e "/usbhost/d" "$1"/usr/www/${HTML}/${avm_Lang}/home/home.html ##grep -q "usbhost" "$1"/usr/www/${HTML}/${avm_Lang}/home/home.html && echo2 " -- usb menu entry not removed on: /usr/www/${HTML}/${avm_Lang}/home/home.html" #the following removes work on all versions sed -i -e "/Usb/d" "$1"/usr/www/${HTML}/${avm_Lang}/home/home.html sed -i -e "/txt036/d" "$1"/usr/www/${HTML}/${avm_Lang}/home/home.html sed -i -e "/^.*