Skip to content

Commit

Permalink
little cosmetic's - add to all cfg: M:menu/${BOXNAME}:Return to ${BOX…
Browse files Browse the repository at this point in the history
…NAME} Tools menu
  • Loading branch information
koivo committed Oct 16, 2016
1 parent 47b2efd commit ae9e63b
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -19,6 +19,9 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# 16.10.16 - add to all cfg M:menu/${BOXNAME}:Return to ${BOXNAME} Tools menu ##
#

MEDIAPATH=/usr/scripts

Expand Down Expand Up @@ -70,6 +73,11 @@ echo -e "\nGenerate ${BOXNAME} menu, scripts, cfg... symbolik link\nPlease reloa
ln -sf ${CREATEDIRECTORY}/${BOXNAME}.cfg ${hdftoolpath}/menu/.
ln -sf ${CREATEDIRECTORY}/${BOXNAME}_menu ${hdftoolpath}/.
ln -sf ${CREATEDIRECTORY}/${BOXNAME}_scripts ${hdftoolpath}/.
)
cd menu
menucfg=$(ls | grep -v ${BOXNAME})
for cfg in $menucfg; do
if ! grep "M:menu/${BOXNAME}" $cfg >/dev/null;then
sed -i "/M:main:Return to Main Menu/i\M:menu/${BOXNAME}:Return to ${BOXNAME} Tools menu" $e
fi;done )

exit 0

0 comments on commit ae9e63b

Please sign in to comment.