Commit cb790839 authored by Fabian Mauchle's avatar Fabian Mauchle

userspace/rootfs: copy dot-config from /update if present during firmware-update

parent af971e84
Pipeline #5202 failed with stage
in 9 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment