在旧的Scratchbox中,你可以这样做:
if [ -f /targets/links/scratchbox.config ]; then
echo "here goes my sbox-dependent stuff"
fi但是Scratchbox2呢,有没有办法发现这一点呢?
发布于 2012-12-26 15:44:15
测试环境变量'LD_PRELOAD‘怎么样?
if [[ $LD_PRELOAD =~ "sb2" ]]; then
true # is running under sb2
fihttps://stackoverflow.com/questions/14037132
复制相似问题