start.sh on boot, run inverter.php in infinite loop

This commit is contained in:
2012-11-27 09:26:25 +01:00
commit 9c9fce8383
7 changed files with 2185 additions and 0 deletions

20
etc/init.d/inverter Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: inverter
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description:
### END INIT INFO
case "$1" in
'start')
/opt/inverter/start.sh
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0