View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#173
Originally Posted by maacruz View Post
I assumed python was a Diablo requirement :-/, I'll add that as a dependency in the next kernel release.
Or just do the truncation with stuff present in the base install like perl:

Code:
open(Z, "+</usr/share/Diablo-Turbo/backup/zImage-backup") &&
sysseek(Z, 0x2C, 0) &&
sysread(Z, $l, 4) &&
truncate(Z, unpack("L", $l)) &&
close(Z);
(season with appopriate error handling to taste).
 

The Following 4 Users Say Thank You to lma For This Useful Post: