add init script

This commit is contained in:
encrypt 2015-03-31 19:18:30 +02:00
parent fa944fb2ba
commit da446999fd

13
etc/init.d/etherswitch Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=99
STOP=99
start() {
/usr/bin/etherswitch &> /var/log/etherswitch.log &
}
stop() {
kill -15 `cat /var/run/etherswitch.pid`
}