Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
469a9e4e
Commit
469a9e4e
authored
Oct 11, 2012
by
p4u
Browse files
For upgrade system, clean overlay should be done only for Alix
parent
9458926a
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/etc/qmp/qmp_update.sh
View file @
469a9e4e
...
...
@@ -152,7 +152,7 @@ qmp_update_upgrade_system() {
read
-p
"Do you want to upgrade system using image
$image_url
? [N,y] "
a
if
[
"
$a
"
==
"y"
]
;
then
rm
-rf
/overlay/
*
2>/dev/null
[
$(
echo
$image_url
|
grep
Alix
-c
)
-eq
1
]
&&
{
echo
"Detected Alix, applying sysupgrade patch..."
;
rm
-rf
/overlay/
*
2>/dev/null
;
}
[
-n
"
$config
"
]
&&
sysupgrade
-f
$config
$output_image
[
-z
"
$config
"
]
&&
sysupgrade
-n
$output_image
fi
...
...
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