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