123456789101112 |
- #130122
- #xsane puts up a warning msg at startup if running as root, remove it...
- #this code is also in file /usr/local/petget/hacks-postinstall.sh.
- #WARNING: this may only work for x86 binary.
- if [ -f /usr/bin/bbe ];then #bbe is a sed-like utility for binary files.
- if [ -f usr/bin/xsane ];then
- bbe -e 's/\x6b\x00getuid/\x6b\x00getpid/' usr/bin/xsane > /tmp/xsane-temp1
- mv -f /tmp/xsane-temp1 usr/bin/xsane
- chmod 755 usr/bin/xsane
- fi
- fi
|