Ensure the backup folder is created

This commit is contained in:
Marc Riera 2023-06-08 23:52:35 +02:00
parent 8b443ccb5e
commit 7011359bb6

View file

@ -33,6 +33,9 @@ if ! mount -o remount,rw /; then
error_exit
fi
# Create backup folder
mkdir -p "${USB_ROOT}/BACKUP"
# Backup original kernel
if [ ! -f "${USB_ROOT}/BACKUP/uImage" ] && [ ! -f "/usr/bin/input_relay" ] && [ ! -f "/usr/bin/ddgo-pnp-controller" ]; then
if ! cp /tmp/boot/uImage "${USB_ROOT}/BACKUP/"; then