Commit cd0e9b28 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

1. updated header 2. excluded *.sh from install

parent 4e330ce7
Loading
Loading
Loading
Loading
+15 −15
Original line number Original line Diff line number Diff line
@@ -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:
	$(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
+25 −25
Original line number Original line Diff line number Diff line
#!/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"