Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-init
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-init
Commits
789e6af8
Commit
789e6af8
authored
Sep 20, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create /var/state after boot
parent
e4a766f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Makefile
src/Makefile
+8
-0
init_elphel393.py
src/init_elphel393.py
+3
-0
No files found.
src/Makefile
View file @
789e6af8
...
@@ -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"
src/init_elphel393.py
View file @
789e6af8
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment