See attached files.
Created attachment 5072 [details] File to patch
Created attachment 5078 [details] patch to apply busybox's patch will apply the patch on wrong lines.