I want to replace the OrigFbPanel-Section with the NewFbPanel-Section in the code below. Presented Code-"solution" did not work.
Any hint, what I'm doing wrong?
Thanks,
RSH
Terminal gives me an unterminated s command message.#!/bin/bash -a
#------------------------------------------------------------------------------
# Leeres Skript für LazY Puppy
# 2012-12-28 RSH for LazY Puppy
#------------------------------------------------------------------------------
# Menu Hierarchy
HirFile=/usr/sbin/pfbpanel
MyHirFile=/tmp/TempInstall/add2fbpanel
MyHir=`cat $MyHirFile`
TempFile=/tmp/TempInstall/add2fbpanel
HirTempFile=/new_pfbpanel
MYHIRINSERT="true"
MYHIRINSERT2="true"
MYHIRINSERT3="true"
OrigFbPanelItems=" fbpanel-xdgmenu /etc/xdg/menus/puppy-desktop.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-system.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-setup.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-utility.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-filesystem.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-graphic.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-document.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-calculate.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-personal.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-network.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-internet.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-multimedia.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-fun.menu >> /tmp/fbpanel-menu"
NewFbPanelItems=" fbpanel-xdgmenu /etc/xdg/menus/puppy-desktop.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-system.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-setup.menu >> /tmp/fbpanel-menu
echo separator \{ >> /tmp/fbpanel-menu
echo \} >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-vsppup.menu >> /tmp/fbpanel-menu
echo separator \{ >> /tmp/fbpanel-menu
echo \} >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-utility.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-filesystem.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-graphic.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-document.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-calculate.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-personal.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-network.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-internet.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-multimedia.menu >> /tmp/fbpanel-menu
fbpanel-xdgmenu /etc/xdg/menus/puppy-fun.menu >> /tmp/fbpanel-menu"
sed -i 's|'$OrigFbPanelItems'|'$NewFbPanelItems'|' $HirFile
exit 0
#------------------------------------------------------------------------------
# End
#------------------------------------------------------------------------------