Blame tests/p_firefox/10-check_default_startpage.sh

225533
#!/bin/sh
225533
# Author: Christoph Galuschka <tigalch@tigalch.org>
225533
225533
# Check for centos.org in preferences.js
225533
t_Log "Running $0 - firefox has www.centos.org as default page."
225533
0ae335
if (t_GetArch firefox | grep -q 'x86_64')
225533
  then
225533
  path='/usr/lib64/firefox/defaults/preferences/all-redhat.js'
0ae335
  else
0ae335
  path='/usr/lib/firefox/defaults/preferences/all-redhat.js'
225533
fi
225533
225533
count=$(grep -c www.centos.org $path)
225533
225533
if [ $count=2 ]
225533
  then
225533
  t_CheckExitStatus 0
225533
  else
225533
  t_CheckExitStatus 1
225533
fi