Commit 789e6af8 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Create /var/state after boot

parent e4a766f8
...@@ -4,6 +4,10 @@ MODPROBEDIR=$(SYSCONFDIR)/modprobe.d ...@@ -4,6 +4,10 @@ MODPROBEDIR=$(SYSCONFDIR)/modprobe.d
DRIVER_NAME=ahci_elphel DRIVER_NAME=ahci_elphel
CONFDIR=$(SYSCONFDIR)/elphel393 CONFDIR=$(SYSCONFDIR)/elphel393
STATEDIR = $(DESTDIR)/var/volatile/state
STATELINK = $(DESTDIR)/var/state
LINK = ln
OWN = -o root -g root OWN = -o root -g root
INSTALL = install INSTALL = install
...@@ -34,5 +38,9 @@ install: ...@@ -34,5 +38,9 @@ install:
$(INSTALL) $(OWN) -d $(MODPROBEDIR) $(INSTALL) $(OWN) -d $(MODPROBEDIR)
echo "blacklist $(DRIVER_NAME)" >> $(MODPROBEDIR)/blacklist.conf echo "blacklist $(DRIVER_NAME)" >> $(MODPROBEDIR)/blacklist.conf
# create directories to support legacy scripts
$(INSTALL) $(OWN) -d $(STATEDIR)
$(LINK) -s -r $(STATEDIR) $(STATELINK)
clean: clean:
@echo "make clean in src" @echo "make clean in src"
...@@ -107,6 +107,9 @@ else: ...@@ -107,6 +107,9 @@ else:
mask = int(str(mask), 16) mask = int(str(mask), 16)
# create directory for camogm pipes, symlink /var/state should already be in rootfs
chout("mkdir /var/volatile/state")
#1 #1
print(sys.argv[0]+": ip = "+IPADDR) print(sys.argv[0]+": ip = "+IPADDR)
init_ipaddr(IPADDR) init_ipaddr(IPADDR)
......
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