Quote Originally Posted by joao.m.esteves

Maybe you would like to know that I'm not beeing able to use the script.
Since I'm a linux novice, I don't have the slightest ideia why, but the error
messages are

root@KanotixBox:~/remaster-0.1# knoppix-remaster
/usr/bin/knoppix-remaster: line 45: syntax error near unexpected token `('
/usr/bin/knoppix-remaster: line 45: ` let
REMASTER_PERC=($REMASTER_PROGRESS*100)/$REMASTER_NEEDED_SIZE'

[/color]
This has been discussed in tread New bash 3.1-1 from unstable causes remaster script to fail

My solution was to make some changes to original Fabian's knoppix-remaster script. The thing to do is use bash extension in line 45 and 66:
Code:
let "REMASTER_PERC=($REMASTER_PROGRESS*100)/$REMASTER_NEEDED_SIZE"

let "REMASTER_NEEDED_SIZE=($(df /cdrom /KNOPPIX | awk '{ N+=$3 } END { N+=(500000*0); print N }')*115)/100"
Brackets $[<SENTENCE>] are oudated and will be removed in the future versions of bash.


-tapsa-