Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/sbin/sh
- DRV_FILE=/usr/lib32/cmplrs/driver
- DRV_OFILE=${DRV_FILE}.orig
- echo "Create backup of original compiler driver file"
- echo Original: ${DRV_FILE}
- cp ${DRV_FILE} ${DRV_OFILE}
- echo Backup: ${DRV_OFILE}
- echo "Patch driver executable"
- dd if=${DRV_OFILE} bs=1 count=230612 > ${DRV_FILE} 2>/dev/null
- dd if=${DRV_OFILE} bs=1 iseek=365340 count=4 >> ${DRV_FILE} 2>/dev/null
- dd if=${DRV_OFILE} bs=1 iseek=230616 >> ${DRV_FILE} 2>/dev/null
- echo "Enjoy."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement