Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
cb790839
Commit
cb790839
authored
Mar 12, 2024
by
Fabian Mauchle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/rootfs: copy dot-config from /update if present during firmware-update
parent
af971e84
Pipeline
#5202
failed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
wrs-boot-procedure
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
+5
-0
No files found.
userspace/rootfs_override/etc/init.d/wrs-boot-procedure
View file @
cb790839
...
...
@@ -46,6 +46,7 @@ WRS_USR="wrs-usr.tar.gz"
WRS_KER
=
"zImage"
WRS_RAMFS
=
"wrs-initramfs.gz"
WRS_BB
=
"barebox.bin"
WRS_CONF
=
"dot-config"
# This is an old name we need to remove so users are not confused
OLD_FW_OLDNAME
=
"wrs-firmware-old.tar"
...
...
@@ -224,6 +225,10 @@ if [ -f /update/$WRS_FW -o -f /update/$WRS_USR ]; then
if
[
-f
/tmp/authorized_keys
]
;
then
mv
/tmp/authorized_keys /usr/
fi
# copy a config into new /usr if present in /update
if
[
-f
/update/
$WRS_CONF
]
;
then
mv
/update/
$WRS_CONF
/usr/wr/etc/
$WRS_CONF
fi
sync
;
cd
/
;
umount /usr
echo
" done"
|
$TEE
/dev/ttyGS0
...
...
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