mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
First version
This commit is contained in:
parent
cf448f548a
commit
6257306d7e
14 changed files with 838 additions and 0 deletions
4
files/dawn.config
Normal file
4
files/dawn.config
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
config 'settings' 'dawn'
|
||||
option broadcast_ip '192.186.1.255'
|
||||
option broadcast_port '1025'
|
||||
option background '0'
|
||||
40
files/dawn.init
Executable file
40
files/dawn.init
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
START=50
|
||||
STOP=50
|
||||
|
||||
PROG=/usr/sbin/dawn
|
||||
NAME=dawn
|
||||
|
||||
start_service()
|
||||
{
|
||||
echo "Starting Service..."
|
||||
|
||||
local broadcast_ip
|
||||
local broadcast_port
|
||||
|
||||
config_load "${NAME}"
|
||||
config_get broadcast_ip dawn broadcast_ip
|
||||
config_get broadcast_port dawn broadcast_port
|
||||
|
||||
procd_open_instance
|
||||
echo "$PROG -p $broadcast_port -i $broadcast_ip"
|
||||
procd_set_param command "$PROG"
|
||||
procd_append_param command -p "${broadcast_port}"
|
||||
procd_append_param command -i "${broadcast_ip}"
|
||||
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
|
||||
echo "${command}"
|
||||
|
||||
#procd_append_param command stdout 1
|
||||
|
||||
procd_set_param respawn
|
||||
echo "Closing instance"
|
||||
|
||||
procd_close_instance
|
||||
echo "Dawn isntance started! (TESTstsasdft)"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue