Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
f4e01772
Commit
f4e01772
authored
Nov 17, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed + one more check
parent
e20ab522
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
overlay_syncd
recipes-core/overlay-sync/files/overlay_syncd
+8
-4
No files found.
recipes-core/overlay-sync/files/overlay_syncd
View file @
f4e01772
...
...
@@ -12,9 +12,11 @@ case "$1" in
stop
)
echo
-n
"Stopping
$DESC
: "
echo
"
$NAME
."
if
[
-f
/tmp/overlay
]
;
then
if
[
-f
/tmp/overlay_sync
]
;
then
if
[
-d
/tmp/rootfs.ro
]
;
then
rsync
-av
/tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
fi
;;
restart
)
echo
-n
"Restarting
$DESC
: "
...
...
@@ -29,9 +31,11 @@ case "$1" in
fi
;;
sync
)
if
[
-f
/tmp/overlay
]
;
then
if
[
-f
/tmp/overlay_sync
]
;
then
if
[
-d
/tmp/rootfs.ro
]
;
then
rsync
-av
/tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
fi
fi
;;
*
)
N
=
/etc/init.d/
$NAME
...
...
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