Commit 720bde32 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

moved config for missing 10389 to a separate file

parent 96733a43
LN = ln
PROGS = autocampars launch_php_script
XMLS = default_10389.xml
#PHPSCRIPTS = autocampars.php
PYSCRIPTS = autocampars.py
WWW_PAGES = /www/pages
......@@ -40,6 +41,8 @@ install: $(PROGS) $(PHPSCRIPTS) $(PYSCRIPTS)
$(INSTALL) -d $(DESTDIR)$(WWW_PAGES)
$(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) -d $(DESTDIR)$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(XMLS) $(DESTDIR)$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PROGS) $(DESTDIR)$(BINDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PYSCRIPTS) $(DESTDIR)$(BINDIR)
# $(INSTALL) $(OWN) -m $(INSTMODE) $(PHPSCRIPTS) $(DESTDIR)$(BINDIR)
......
......@@ -1346,8 +1346,8 @@ function get_application_mode() {
if ($info_10389!=""){
$xml = simplexml_load_string ( $info_10389 ); // read contents of
}else{
log_msg("10389 board is not present, loading default xml");
$xml = simplexml_load_string ( "<board><model>10389 not present</model><rev>B</rev><serial>F80000</serial><app>MT9P006</app><mode>15</mode></board>" );
log_msg("10389 board is not present, loading /etc/elphel393/default_10389.xml");
$xml = simplexml_load_string ( file_get_contents("/etc/elphel393/default_10389.xml") );
}
if ($xml === false) {
......
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