74 |
} |
} |
75 |
|
|
76 |
function copy_PNG_SYSLINUX(){ |
function copy_PNG_SYSLINUX(){ |
77 |
|
local targetPNG=/restorecd/ocswp.png |
78 |
|
if [ -n "$bootImg" ];then targetPNG="$bootImg";fi |
79 |
SYSLINUX_FILE=`echo $finalCFG | sed 's{isolinux{syslinux{g'` |
SYSLINUX_FILE=`echo $finalCFG | sed 's{isolinux{syslinux{g'` |
80 |
SYS=`dirname $finalCFG` |
SYS=`dirname $finalCFG` |
81 |
sed 's{noprompt {{g' $finalCFG > $SYSLINUX_FILE |
sed 's{noprompt {{g' $finalCFG > $SYSLINUX_FILE |
82 |
cp /restorecd/ocswp.png $SYS |
cp "$targetPNG" $SYS |
83 |
cp /restorecd/ocswp.png `echo $SYS | sed 's{isolinux{syslinux{g'` |
cp "$targetPNG" `echo $SYS | sed 's{isolinux{syslinux{g'` |
84 |
} |
} |
85 |
|
|
86 |
|
|
316 |
fi |
fi |
317 |
|
|
318 |
|
|
319 |
if [ -n "$bootImage" ] && [ -e "$bootImage" ] ;then |
if [ -n "$bootImage" ];then |
320 |
bootImg="$bootImage" |
if [ -e "$bootImage" ] || [ -e /home/partimag/"$bootImage" ] ;then |
321 |
|
bootImg="$bootImage" |
322 |
|
fi |
323 |
fi |
fi |
324 |
|
|
|
|
|
325 |
fi |
fi |
326 |
|
|
327 |
copy_PNG_SYSLINUX |
copy_PNG_SYSLINUX |