Subversion Repositories livecd

Rev

Rev 80 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 81
Line 359... Line 359...
359
### start afs with option -memcache !
359
### start afs with option -memcache !
360
if [ -e /etc/sysconfig/afs ]; then
360
if [ -e /etc/sysconfig/afs ]; then
361
    if [ $PSI ]; then
361
    if [ $PSI ]; then
362
	sed -i "s|^EXTRA_OPTIONS=.*|EXTRA_OPTIONS='-fakestat -memcache'|" /etc/sysconfig/afs
362
	sed -i "s|^EXTRA_OPTIONS=.*|EXTRA_OPTIONS='-fakestat -memcache'|" /etc/sysconfig/afs
363
    else
363
    else
-
 
364
	# for SL4
364
	grep -q "\-fakestat \-memcache" /etc/sysconfig/afs
365
	grep -q "\-fakestat \-memcache" /etc/sysconfig/afs
365
	if [ "$?" != "0" ]; then
366
	if [ "$?" != "0" ]; then
366
	    sed -i "s|-fakestat|-fakestat -memcache|" /etc/sysconfig/afs
367
	    sed -i "s|-fakestat|-fakestat -memcache|" /etc/sysconfig/afs
367
	fi
368
	fi
-
 
369
	# for SL5
-
 
370
	rpm -q openafs | grep -q SL5
-
 
371
	if [ "$?" = "0" ]; then
-
 
372
	    sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
373
	fi
368
    fi
374
    fi
369
fi
375
fi
370
 
376
 
371
### source /etc/sysconfig/cfengine
377
### source /etc/sysconfig/cfengine
372
[ $PSI ] && . /etc/sysconfig/cfengine
378
[ $PSI ] && . /etc/sysconfig/cfengine