Commit 138630ea authored by Andrey Filippov's avatar Andrey Filippov

debug version of init

parent e4a766f8
...@@ -11,6 +11,7 @@ INSTMODE = 0755 ...@@ -11,6 +11,7 @@ INSTMODE = 0755
SCRIPT1=init_elphel393.py SCRIPT1=init_elphel393.py
SCRIPT2=init_elphel393 SCRIPT2=init_elphel393
SCRIPT3=init_elphel393.sh
all: all:
@echo "make all in src" @echo "make all in src"
...@@ -24,6 +25,12 @@ install: ...@@ -24,6 +25,12 @@ 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
$(INSTALL) $(OWN) -d $(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(SCRIPT3).tmp $(CONFDIR)/$(SCRIPT3)
rm $(SCRIPT3).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
$(INSTALL) $(OWN) -d $(INITDIR) $(INSTALL) $(OWN) -d $(INITDIR)
......
...@@ -26,6 +26,7 @@ imgsrv -p 2323 ...@@ -26,6 +26,7 @@ imgsrv -p 2323
killall lighttpd; /usr/sbin/lighttpd -f /etc/lighttpd.conf killall lighttpd; /usr/sbin/lighttpd -f /etc/lighttpd.conf
/www/pages/exif.php init=/etc/Exif_template.xml /www/pages/exif.php init=/etc/Exif_template.xml
exit 0
echo "init sensor port" echo "init sensor port"
wget -O /dev/null "localhost/framepars.php?sensor_port=0&cmd=init" wget -O /dev/null "localhost/framepars.php?sensor_port=0&cmd=init"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment