91 |
# # # |
# # # |
92 |
# # # |
# # # |
93 |
# # # the CFG file can be found as |
# # # the CFG file can be found as |
94 |
# # # /tmp/isolnx.*/isolinux/isolinux.cfg |
# # # /tmp/*/isolinux/isolinux.cfg |
95 |
# # # or |
# # # or |
96 |
# # # /home/partimag/usb-dev.*/syslinux/syslinux.cfg |
# # # /home/partimag/*/isolinux/isolinux.cfg |
97 |
# # # |
# # # |
98 |
# # # |
# # # |
99 |
if [ -e /tmp/isolnx.*/isolinux/isolinux.cfg ];then |
|
100 |
|
if [ -e /tmp/*/isolinux/isolinux.cfg ];then |
101 |
type=ISO |
type=ISO |
102 |
origCFG="/tmp/isolnx.*/isolinux/isolinux.cfg" |
origCFG="/tmp/*/isolinux/isolinux.cfg" |
103 |
elif [ -e /home/partimag/usb-dev.*/syslinux/syslinux.cfg ];then |
elif [ -e /home/partimag/*/isolinux/isolinux.cfg ];then |
104 |
type=ZIP |
type=ZIP |
105 |
origCFG="/home/partimag/usb-dev.*/syslinux/syslinux.cfg" |
origCFG="/home/partimag/*/isolinux/isolinux.cfg" |
106 |
else |
else |
107 |
origCFG='' |
origCFG='' |
108 |
type=ZIP |
type=ZIP |
109 |
|
dialog --backtitle Clonezilla-SysRescCD --title " Execution Error " --msgbox "This is not a stand-alone script and should not be executed by the command line |
110 |
# dialog --backtitle Clonezilla-SysRescCD --title " Execution Error " --msgbox "This is not a stand-alone script and should not be executed by the command line |
|
111 |
# |
This script will terminate now" 0 0 |
112 |
# This script will terminate now" 0 0 |
exit 1 |
|
# exit 1 |
|
113 |
fi |
fi |
114 |
|
|
115 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
|
233 |
if [ -n "$menuTitle" ];then |
if [ -n "$menuTitle" ];then |
234 |
sed "s|^ *MENU TITLE .*|MENU TITLE $menuTitle|" "$inFile" > "$inFile".$$ && mv "$inFile".$$ "$inFile" |
sed "s|^ *MENU TITLE .*|MENU TITLE $menuTitle|" "$inFile" > "$inFile".$$ && mv "$inFile".$$ "$inFile" |
235 |
fi |
fi |
273 |
|
|
274 |
|
|
275 |
if [ "$type" = "ISO" ];then |
if [ "$type" = "ISO" ];then |
276 |
cp "$inFile" /tmp/isolnx.*/isolinux/isolinux.cfg |
cp "$inFile" /tmp/*/isolinux/isolinux.cfg |
277 |
cp "$bootImg" /tmp/isolnx.*/isolinux |
cp "$bootImg" /tmp/*/isolinux |
278 |
else |
else |
279 |
cp "$inFile" /home/partimag/usb-dev.*/syslinux/syslinux.cfg |
# cp "$inFile" /home/partimag/*/syslinux/syslinux.cfg |
280 |
cp "$bootImg" /home/partimag/usb-dev.* |
# cp "$bootImg" /home/partimag/usb-dev.* |
281 |
|
#fi |
282 |
|
# |
283 |
|
#if [ "$type" = "ZIP" ];then |
284 |
|
SYSLINUX_FILE=`echo "$origCFG" | sed 's{isolinux{syslinux{g'` |
285 |
|
sed "$inFile" | sed '{noprompt {{g' > "$SYSLINUX_FILE" |
286 |
|
cp "$bootImg" `dirname "$SYSLINUX_FILE"` |
287 |
fi |
fi |
288 |
|
|
289 |
rm "$inFile" |
rm "$inFile" |