diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-06-09 18:21:29 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-06-09 18:21:29 (GMT) |
commit | 3302442b971e9fa46d50d19913e0ed316dff7ebd (patch) | |
tree | 9bcc92e19c70770c630c43ed311b347097f72338 /tests/virtualfb.sh | |
parent | 25cf3ad26b3cabc56fcdfbcc38a2f767a59ecfb6 (diff) |
netbsd fix for virtualfb.sh xvfb startup
A
Diffstat (limited to 'tests/virtualfb.sh')
-rwxr-xr-x | tests/virtualfb.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/virtualfb.sh b/tests/virtualfb.sh index 186b389..252da98 100755 --- a/tests/virtualfb.sh +++ b/tests/virtualfb.sh @@ -24,7 +24,15 @@ start() fi VFB_DISPLAY=`echo | awk 'BEGIN{srand();} {printf ":%.0f", rand()*1000+100};'` - $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 &> ./virtualfb.log & + if [ $debug ]; then + echo debug VFB_DISPLAY $VFB_DISPLAY + echo debug VFB_BINARY $VFB_BINARY + fi + if [ $BASH ]; then + $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 \&> ./virtualfb.log & + else + $VFB_BINARY $VFB_DISPLAY -screen 0 800x600x24 > ./virtualfb.log & + fi # on some systems $! gives us VFB_BINARY's PID, on others we have to subtract 1 VFB_PID_MINUS0=$! VFB_PID_MINUS1=$(($VFB_PID_MINUS0 - 1)) |