Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/sbin/sh
  2.  
  3.  
  4. DRV_FILE=/usr/lib32/cmplrs/driver
  5. DRV_OFILE=${DRV_FILE}.orig
  6.  
  7. echo "Create backup of original compiler driver file"
  8. echo Original: ${DRV_FILE}
  9. cp ${DRV_FILE} ${DRV_OFILE}
  10. echo Backup: ${DRV_OFILE}
  11.  
  12. echo "Patch driver executable"
  13. dd if=${DRV_OFILE} bs=1 count=230612 > ${DRV_FILE} 2>/dev/null
  14. dd if=${DRV_OFILE} bs=1 iseek=365340 count=4 >> ${DRV_FILE} 2>/dev/null
  15. dd if=${DRV_OFILE} bs=1 iseek=230616 >> ${DRV_FILE} 2>/dev/null
  16.  
  17. echo "Enjoy."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement