2019-03-29 08:49:31 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
dls_url="$1"
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
mount -o remount,rw /boot
|
2019-03-29 08:51:23 +00:00
|
|
|
|
|
|
|
if [ -e /boot/previous ]; then
|
|
|
|
rm -fr /boot/previous
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e /boot/current ]; then
|
|
|
|
mv /boot/current /boot/previous
|
|
|
|
fi
|
|
|
|
|
2019-03-29 08:49:31 +00:00
|
|
|
curl $dls_url/me/boot.tar |tar xv -C /boot
|
|
|
|
sync
|
|
|
|
|