-
Senior Member
registered user
Re: Can't use the script

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-
Similar Threads
-
By Fabianx in forum Ideas
Replies: 3
Last Post: 11-24-2004, 07:36 PM
-
By ktheking in forum The Lounge
Replies: 3
Last Post: 09-08-2003, 07:03 PM
-
By jsteffan in forum News
Replies: 6
Last Post: 06-22-2003, 02:57 PM
-
By MichielioZ in forum Customising & Remastering
Replies: 11
Last Post: 04-15-2003, 12:13 AM
-
By monkymind in forum News
Replies: 37
Last Post: 03-20-2003, 05:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$149.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$108.92

IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS
$80.00

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER
$349.99

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU
$250.00

Lot of 2 IBM blade center Type H chassis 8852
$559.00