Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-init
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-init
Commits
cd0e9b28
Commit
cd0e9b28
authored
Jan 13, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. updated header 2. excluded *.sh from install
parent
4e330ce7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
40 deletions
+40
-40
Makefile
src/Makefile
+15
-15
init_elphel393.py
src/init_elphel393.py
+25
-25
No files found.
src/Makefile
View file @
cd0e9b28
...
@@ -16,10 +16,10 @@ INSTMODE = 0755
...
@@ -16,10 +16,10 @@ INSTMODE = 0755
SCRIPT1
=
init_elphel393.py
SCRIPT1
=
init_elphel393.py
SCRIPT2
=
init_elphel393
SCRIPT2
=
init_elphel393
# init_elphel393.sh is used for Eyesis 12-sensors
# init_elphel393.sh is used for Eyesis 12-sensors
SCRIPT3
=
init_elphel393.sh
#
SCRIPT3=init_elphel393.sh
SCRIPT4
=
init_eyesis12.sh
#
SCRIPT4=init_eyesis12.sh
SCRIPT5
=
init_eyesis_bottom2.sh
#
SCRIPT5=init_eyesis_bottom2.sh
all
:
all
:
@
echo
"make all in src"
@
echo
"make all in src"
...
@@ -33,20 +33,20 @@ install:
...
@@ -33,20 +33,20 @@ install:
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT1).tmp
$(CONFDIR)/$(SCRIPT1)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT1).tmp
$(CONFDIR)/$(SCRIPT1)
rm
$(SCRIPT1).tmp
rm
$(SCRIPT1).tmp
sed
-e
's/192.168.0.9/$(REMOTE_IP)/'
$(SCRIPT3)
>
$(SCRIPT3).tmp
#
sed -e 's/192.168.0.9/$(REMOTE_IP)/' $(SCRIPT3) > $(SCRIPT3).tmp
$(INSTALL)
$(OWN)
-d
$(CONFDIR)
#
$(INSTALL) $(OWN) -d $(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT3).tmp
$(CONFDIR)/$(SCRIPT3)
#
$(INSTALL) $(OWN) -m $(INSTMODE) $(SCRIPT3).tmp $(CONFDIR)/$(SCRIPT3)
rm
$(SCRIPT3).tmp
#
rm $(SCRIPT3).tmp
sed
-e
's/192.168.0.9/$(REMOTE_IP)/'
$(SCRIPT4)
>
$(SCRIPT4).tmp
#
sed -e 's/192.168.0.9/$(REMOTE_IP)/' $(SCRIPT4) > $(SCRIPT4).tmp
$(INSTALL)
$(OWN)
-d
$(CONFDIR)
#
$(INSTALL) $(OWN) -d $(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT4).tmp
$(CONFDIR)/$(SCRIPT4)
#
$(INSTALL) $(OWN) -m $(INSTMODE) $(SCRIPT4).tmp $(CONFDIR)/$(SCRIPT4)
rm
$(SCRIPT4).tmp
#
rm $(SCRIPT4).tmp
sed
-e
's/192.168.0.9/$(REMOTE_IP)/'
$(SCRIPT5)
>
$(SCRIPT5).tmp
#
sed -e 's/192.168.0.9/$(REMOTE_IP)/' $(SCRIPT5) > $(SCRIPT5).tmp
$(INSTALL)
$(OWN)
-d
$(CONFDIR)
#
$(INSTALL) $(OWN) -d $(CONFDIR)
$(INSTALL)
$(OWN)
-m
$(INSTMODE)
$(SCRIPT5).tmp
$(CONFDIR)/$(SCRIPT5)
#
$(INSTALL) $(OWN) -m $(INSTMODE) $(SCRIPT5).tmp $(CONFDIR)/$(SCRIPT5)
rm
$(SCRIPT5).tmp
#
rm $(SCRIPT5).tmp
#INITSTRING default is defined in local.conf, weak default - meta-core/init/init.bb
#INITSTRING default is defined in local.conf, weak default - meta-core/init/init.bb
sed
-e
's/init_elphel393.py/$(INITSTRING)/'
$(SCRIPT2)
>
$(SCRIPT2).tmp
sed
-e
's/init_elphel393.py/$(INITSTRING)/'
$(SCRIPT2)
>
$(SCRIPT2).tmp
...
...
src/init_elphel393.py
View file @
cd0e9b28
#!/usr/bin/env python
#!/usr/bin/env python
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
'''
# Copyright (C) 2016, Elphel.inc.
# Usage: known
#
# 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/>.
@author: Oleg K Dzhimiev
@copyright: 2016 Elphel, Inc.
@license: GPLv3.0+
@contact: oleg@elphel.com
@deffield updated: unknown
'''
/**
* @file init_elphel393.py
* @brief 10393 related init script
* @copyright Copyright (C) 2016 Elphel Inc.
* @author Oleg Dzhimiev <oleg@elphel.com>
* @deffield updated: unknown
*
* @par <b>License</b>:
* 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/>.
*/
'''
'''
__author__
=
"
Elphel
"
__author__
=
"
Oleg Dzhimiev
"
__copyright__
=
"Copyright
2016, Elphel,
Inc."
__copyright__
=
"Copyright
(C) 2016 Elphel
Inc."
__license__
=
"GPL"
__license__
=
"GPL"
__version__
=
"3.0+"
__version__
=
"3.0+"
__maintainer__
=
"Oleg
K
Dzhimiev"
__maintainer__
=
"Oleg Dzhimiev"
__email__
=
"oleg@elphel.com"
__email__
=
"oleg@elphel.com"
__status__
=
"Development"
__status__
=
"Development"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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