mirror of
https://github.com/marcriera/ddgo-pnp-controller.git
synced 2025-04-18 09:39:28 +02:00
Ensure the backup folder is created
This commit is contained in:
parent
8b443ccb5e
commit
7011359bb6
1 changed files with 3 additions and 0 deletions
3
dist/hook_magic_36558b710a.sh
vendored
3
dist/hook_magic_36558b710a.sh
vendored
|
@ -33,6 +33,9 @@ if ! mount -o remount,rw /; then
|
||||||
error_exit
|
error_exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create backup folder
|
||||||
|
mkdir -p "${USB_ROOT}/BACKUP"
|
||||||
|
|
||||||
# Backup original kernel
|
# Backup original kernel
|
||||||
if [ ! -f "${USB_ROOT}/BACKUP/uImage" ] && [ ! -f "/usr/bin/input_relay" ] && [ ! -f "/usr/bin/ddgo-pnp-controller" ]; then
|
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
|
if ! cp /tmp/boot/uImage "${USB_ROOT}/BACKUP/"; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue