Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
rainbow
Commits
56046a6e
Commit
56046a6e
authored
Jan 09, 2014
by
Robin Obůrka
Browse files
Add license and readme file
parent
0d318573
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
LICENSE
0 → 100644
View file @
56046a6e
This diff is collapsed.
Click to expand it.
README
0 → 100644
View file @
56046a6e
Rainbow is part of Project Turris. This application is very closely connected
with Turris router hardware and the most of this source code will be useless on
any other HW.
This source code consists of 2 main parts:
1) Command line utility that enables to user to set status, color and
intensity of all LEDs of Turris router. For more informations run command
'rainbow --help'.
2) Daemon with basic feature: Turris has wireless card in mini PCI slot and
so it is impossible to show wireless radio status by HW activities. Rainbow
demon is checking wireless status and performs SW emulation of the expected
behavior by setting WiFi LED status.
arg_parser.c
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<stdbool.h>
#include
<stdlib.h>
#include
<string.h>
...
...
arg_parser.h
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ARG_PARSER_H
#define ARG_PARSER_H
...
...
configuration.h
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
...
...
daemon.c
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<stdio.h>
#include
<string.h>
#include
<stdlib.h>
...
...
daemon.h
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DAEMON_H
#define DAEMON_H
...
...
main.c
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdbool.h>
...
...
reg_setters.c
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include
<stdbool.h>
#include
<string.h>
...
...
reg_setters.h
View file @
56046a6e
/*
* Rainbow is tool for changing color and status of LEDs of the Turris router
* Rainbow daemon provides indication of WiFi status by controlling its LED
*
* Copyright (C) 2013 CZ.NIC, z.s.p.o. (http://www.nic.cz/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef REG_SETTERS_H
#define REG_SETTERS_H
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment