Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
2d93cad8
Commit
2d93cad8
authored
11 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-core: always handle core scripts first
parent
fa1774a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade
+33
-24
33 additions, 24 deletions
package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade
with
33 additions
and
24 deletions
package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade
+
33
−
24
View file @
2d93cad8
...
@@ -27,18 +27,8 @@ do_dir() {
...
@@ -27,18 +27,8 @@ do_dir() {
fi
fi
}
}
do_component
()
{
version
=
"
$(
version_of gluon-core
)
"
local
component
=
"
$1
"
oldversion
=
"
$(
cat
"
$VERSION_FILE
"
2>/dev/null
)
"
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_FREIFUNK
"
2>/dev/null
)
"
;
fi
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_LFF
"
2>/dev/null
)
"
;
fi
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_KFF
"
2>/dev/null
)
"
;
fi
(
cd
"
$UPGRADE_DIR
"
for
component
in
*
;
do
(
local
version
=
"
$(
version_of
"
$component
"
)
"
local
version
=
"
$(
version_of
"
$component
"
)
"
if
[
-z
"
$version
"
]
;
then continue
;
fi
if
[
-z
"
$version
"
]
;
then continue
;
fi
...
@@ -63,6 +53,25 @@ if [ -z "$oldversion" ]; then oldversion="$(cat "$VERSION_FILE_KFF" 2>/dev/null)
...
@@ -63,6 +53,25 @@ if [ -z "$oldversion" ]; then oldversion="$(cat "$VERSION_FILE_KFF" 2>/dev/null)
do_dir invariant
do_dir invariant
echo
"
$version
"
>
"
$VERSION_DIR
"
/
"
$component
"
echo
"
$version
"
>
"
$VERSION_DIR
"
/
"
$component
"
}
version
=
"
$(
version_of core
)
"
oldversion
=
"
$(
cat
"
$VERSION_FILE
"
2>/dev/null
)
"
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_FREIFUNK
"
2>/dev/null
)
"
;
fi
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_LFF
"
2>/dev/null
)
"
;
fi
if
[
-z
"
$oldversion
"
]
;
then
oldversion
=
"
$(
cat
"
$VERSION_FILE_KFF
"
2>/dev/null
)
"
;
fi
(
cd
"
$UPGRADE_DIR
"
do_compoment core
for
component
in
*
;
do
(
if
[
"
$component
"
!=
'core'
]
;
then
do_component
"
$component
"
fi
)
done
)
done
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment