2 if [ ${USER} = "root" ];then
6 #chown root:root /usr/bin/sf_server
7 #chown root:root /etc/rc.d/init.d/sfsvc
8 #chown root:root /etc/rc.d/rc3.d/S72sfsvc
10 chown root:root /usr/etc/sf_sensor*
11 chown root:root /usr/etc/sf_filter*
12 chown root:root /usr/etc/sf_processor*
13 chown root:root /usr/etc/sf_data_stream*
14 #4. vconf key generation
15 vconftool set -t int memory/sensor/10001 0 -i
16 vconftool set -t int memory/sensor/10002 0 -i
17 vconftool set -t int memory/sensor/10004 0 -i
18 vconftool set -t int memory/sensor/10008 0 -i
19 vconftool set -t int memory/sensor/20001 0 -i
20 vconftool set -t int memory/sensor/20002 0 -i
21 vconftool set -t int memory/sensor/20004 0 -i
22 vconftool set -t int memory/sensor/200001 0 -i
23 vconftool set -t int memory/sensor/40001 0 -i
24 vconftool set -t int memory/sensor/40002 0 -i
25 vconftool set -t int memory/sensor/800001 0 -i
26 vconftool set -t int memory/sensor/800002 0 -i
27 vconftool set -t int memory/sensor/800004 0 -i
28 vconftool set -t int memory/sensor/800008 0 -i
29 vconftool set -t int memory/sensor/800010 0 -i
30 vconftool set -t int memory/sensor/800020 0 -i
31 vconftool set -t int memory/sensor/800040 0 -i
32 vconftool set -t int memory/sensor/80001 0 -i
33 vconftool set -t int memory/sensor/80002 0 -i
35 # change file permissions
38 #chmod 700 /usr/bin/sf_server
39 #chmod 700 /etc/rc.d/init.d/sfsvc
40 #chmod 700 /etc/rc.d/rc3.d/S72sfsvc
42 chmod 644 /usr/etc/sf_sensor*
43 chmod 644 /usr/etc/sf_filter*
44 chmod 644 /usr/etc/sf_processor*
45 chmod 644 /usr/etc/sf_data_stream*