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
2cef32c9
Commit
2cef32c9
authored
Nov 22, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
options for sync/nosync
parent
d35a940a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
overlay_sync
recipes-core/overlay-sync/files/overlay_sync
+18
-1
No files found.
recipes-core/overlay-sync/files/overlay_sync
View file @
2cef32c9
#!/bin/sh
echo
$@
>
/tmp/overlay_sync
usage
=
"Usage:
$(
basename
"
$0
"
)
1 - 'order' syncing of rootfs changes on reboot/shutdown
$(
basename
"
$0
"
)
0 - discard syncing
"
case
"
$1
"
in
0
)
if
[
-f
/tmp/overlay_sync
]
;
then
rm
/tmp/overlay_sync
fi
;;
1
)
echo
$@
>
/tmp/overlay_sync
;;
*
)
echo
"
$usage
"
;;
esac
exit
0
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