From 7011359bb6fd9dc2dacc0ea2d93c3d4a6d32a355 Mon Sep 17 00:00:00 2001 From: Marc Riera Date: Thu, 8 Jun 2023 23:52:35 +0200 Subject: [PATCH] Ensure the backup folder is created --- dist/hook_magic_36558b710a.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/hook_magic_36558b710a.sh b/dist/hook_magic_36558b710a.sh index 45f0568..f600c4f 100644 --- a/dist/hook_magic_36558b710a.sh +++ b/dist/hook_magic_36558b710a.sh @@ -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