1 #!/bin/sh /etc/rc.common
5 ### replace shipped config with symlink
7 if [ ! -L /etc
/collectd.conf
]; then
8 test -f /etc
/collectd.conf
&& mv /etc
/collectd.conf
/etc
/collectd.conf.bak
9 ln -s /var
/etc
/collectd.conf
/etc
/collectd.conf
13 /usr
/bin
/stat-genconfig
> /var
/etc
/collectd.conf
15 ### workaround broken permissions on /tmp
20 ### regenerate config / prepare environment
24 /etc
/init.d
/collectd restart