View Single Post
Old 10-19-2012, 10:17 AM   #114
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by diba View Post
AddOn: "# Start updatewait in background and exit" is already # in the original file.
As it should be, that is a comment about what that part of the code does, not a command to do something.

Making an auto-change thing:
Put both files (under two names, the old one append ".old") in the same directory ;
diff -u filename.old filename ;
save the result as filename-something_distinctive.patch ;
write an "install" script that includes the command:
patch -p0 < filename-something_distinctive.patch

Automate as desired.
(the un-instal would be: patch -p0 -R < filename-something_distinctive.patch)

see the manual entry:
man patch
or google for the same.
knc1 is offline   Reply With Quote