304 |
|
|
305 |
# Check parameters |
# Check parameters |
306 |
[ -z "$inputFile" ] && { |
[ -z "$inputFile" ] && { |
307 |
echo " Error: Parameter -i (input file) not specified!!!" |
printHelp |
308 |
exit 1 |
exit 1 |
309 |
} |
} |
310 |
[ -z "$mainSplash" ] || { |
[ -z "$mainSplash" ] || { |
364 |
} |
} |
365 |
} |
} |
366 |
printVersion |
printVersion |
367 |
set -x |
# set -x |
368 |
echo -n "Mounting files... " |
echo -n "Mounting files... " |
369 |
isClonezillaSysRescCDRunning |
isClonezillaSysRescCDRunning |
370 |
|
|
456 |
|
|
457 |
else |
else |
458 |
|
|
459 |
|
# if [ -z "$mountPoint" ];then |
460 |
|
# echo "mountPoint is empty!!!" |
461 |
|
# exit |
462 |
|
# fi |
463 |
|
|
464 |
for n in "$mountPoint"/*;do |
for n in "$mountPoint"/*;do |
465 |
if [ "$n" != "$savePartitionMountPoint" ] && [ "$n" != "/proc" \ && [ "$n" != "/sys" ];then |
if [ "$n" != "$savePartitionMountPoint" ] && [ "$n" != "/proc" ] && [ "$n" != "/sys" ];then |
466 |
cp -r "mountPoint"/"$n" "$savePartitionMountPoint"/new-iso 2>/dev/null || { |
cp -r "$n" "$savePartitionMountPoint"/new-iso 2>/dev/null || { |
467 |
echo "failed" |
echo "failed" |
468 |
echo |
echo |
469 |
cleanUp |
cleanUp |