jazzyguy Posted January 10, 2012 Share Posted January 10, 2012 Is it possible? I want to make a script to patch the DSDT with my patch I and others made specially for our laptop. So can we do it? Link to comment Share on other sites More sharing options...
LatinMcG Posted January 10, 2012 Share Posted January 10, 2012 use dsdt editor.. to make new patch Link to comment Share on other sites More sharing options...
jazzyguy Posted January 10, 2012 Author Share Posted January 10, 2012 Right, I have the patch. But is there a way to implement the patch for use in terminal instead of through DSDT editor? I want to be able to patch a laptop on the spot, even if they don't have java installed. Link to comment Share on other sites More sharing options...
RYIK Posted January 11, 2012 Share Posted January 11, 2012 I think - yes, but You may will need write script. 1. decompile DSDT.aml to text DSDT.dsl (iasl -d -2 DSDT.aml) 2. fix your DSDT.dsl 3. complie to DSDT.aml (iasl -w3 -ta DSDT.dsl) Link to comment Share on other sites More sharing options...
LatinMcG Posted January 11, 2012 Share Posted January 11, 2012 2: fix your dsdt.dsl = edit text in terminal Link to comment Share on other sites More sharing options...
jazzyguy Posted January 11, 2012 Author Share Posted January 11, 2012 Right, can I automate that step two in any way? Link to comment Share on other sites More sharing options...
RYIK Posted January 12, 2012 Share Posted January 12, 2012 find ./ -type f -iname DSDT.dsl | xargs perl -i.bak -pe "s/_wrong_text_/_right_text_/g" http://ss64.com/osx/find.html Link to comment Share on other sites More sharing options...
jazzyguy Posted January 12, 2012 Author Share Posted January 12, 2012 find ./ -type f -iname DSDT.dsl | xargs perl -i.bak -pe "s/_wrong_text_/_right_text_/g" http://ss64.com/osx/find.html Oh goodness. Re writing that whole patch... Thanks! Link to comment Share on other sites More sharing options...
RYIK Posted January 13, 2012 Share Posted January 13, 2012 Or simple: perl -pe "s/_wrong_text_/_right_text_/g" ./DSDT.orig.dsl ./DSDT.patched.dsl Link to comment Share on other sites More sharing options...
jazzyguy Posted January 15, 2012 Author Share Posted January 15, 2012 Cool, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts