mirror of
https://github.com/007revad/Synology_enable_M2_volume.git
synced 2026-04-25 13:05:54 +03:00
[GH-ISSUE #137] you can keep it simple #239
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_enable_M2_volume#239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @capullo on GitHub (Nov 24, 2023).
Original GitHub issue: https://github.com/007revad/Synology_enable_M2_volume/issues/137
here an example oneliner how to patch the lib, just with xxd and sed:
cd /usr/lib && xxd -p -u -c 0 libhwcontrol.so.1 > /tmp/libhwcontrol.so.1.tmp && grep -v "803E00B8010000009090488B" /tmp/libhwcontrol.so.1.tmp >/dev/null && grep -e "803E00B801000000752.488B" /tmp/libhwcontrol.so.1.tmp >/dev/null && cp libhwcontrol.so.1 libhwcontrol.so.1.bak && sed 's/803E00B801000000752.488B/803E00B8010000009090488B/' /tmp/libhwcontrol.so.1.tmp | xxd -r -p > libhwcontrol.so.1xxd -p -u -c 0to readxxd -r -pto writemaybe this helps to simplify your script