vi /etc/init.d/led_aging.sh
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: led_aging.sh
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start LED aging
# Description: Starts LED aging (whatever that is)
### END INIT INFO
x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
/usr/bin/led_acc &
fi
apt-get install owfs
mkdir /mnt/1wire
vi /etc/owfs.conf
# uncomment:
mountpoint = /mnt/1wire
vi /etc/init.d/owfs
#!/bin/sh
owserver -u -p 4304
chmod 777 /etc/init.d/owfs
# igonre warnings!
update-rc.d owfs defaults
apt-get install rrdtool
apt-get install ow-shell
# start owfs manually
/usr/bin/owfs --allow_other -u /mnt/1wire
# if owSERVER doesn't start at startup
killall owserver
sudo /etc/init.d/owfserver